fixed PHP notices

This commit is contained in:
Roland Gruber 2007-10-12 16:14:38 +00:00
parent d10f1a3575
commit 699c591a38
1 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ class quota extends baseModule {
$id = $this->replaceSpecialChars($server);
$i=0;
// loop for every mointpoint with quotas
while ($this->quota[$server][$i][0]) {
while (isset($this->quota[$server][$i][0])) {
$this->quota[$server][$i][2] = $_POST[$i . '_2_' . $id];
$this->quota[$server][$i][3] = $_POST[$i . '_3_' . $id];
$this->quota[$server][$i][6] = $_POST[$i . '_6_' . $id];
@ -374,7 +374,7 @@ class quota extends baseModule {
$i=0;
// loop for every mointpoint with enabled quotas
while ($this->quota[$server][$i][0]) {
while (isset($this->quota[$server][$i][0])) {
$fieldContent[] = array(
array('kind' => 'text', 'text' => $this->quota[$server][$i][0]),
array('kind' => 'text', 'text' => $this->quota[$server][$i][1]),