fix if/else code error

This commit is contained in:
Matthew Saunders Brown 2022-07-02 10:51:13 -07:00
parent fc52030df9
commit bdf80565f3

View File

@ -31,16 +31,15 @@ class MboxesAdd extends \Panel\Vmail {
$f3->reroute("/Email/$domain/Accounts");
}
}
} else {
$mbox = array();
$mbox['status'] = 1;
$mbox['quota'] = $mbox_defaults[0]['mbox_quota_default'];
if ($mbox['quota'] == 'NULL') { $mbox['quota'] = 'Unlimited'; }
$mbox['ratelimit'] = $mbox_defaults[0]['mbox_ratelimit_default'];
if ($mbox['ratelimit'] == 'NULL') { $mbox['ratelimit'] = 'Unlimited'; }
$mbox['filtering'] = 2;
$f3->set('mbox', $mbox);
}
$mbox = array();
$mbox['status'] = 1;
$mbox['quota'] = $mbox_defaults[0]['mbox_quota_default'];
if ($mbox['quota'] == 'NULL') { $mbox['quota'] = 'Unlimited'; }
$mbox['ratelimit'] = $mbox_defaults[0]['mbox_ratelimit_default'];
if ($mbox['ratelimit'] == 'NULL') { $mbox['ratelimit'] = 'Unlimited'; }
$mbox['filtering'] = 2;
$f3->set('mbox', $mbox);
}
}