From bdf80565f3b29f307415cd51bf6491bafa532e83 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Sat, 2 Jul 2022 10:51:13 -0700 Subject: [PATCH] fix if/else code error --- panel/classes/Panel/Vmail/MboxesAdd.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/panel/classes/Panel/Vmail/MboxesAdd.php b/panel/classes/Panel/Vmail/MboxesAdd.php index ce4187d..7e688fb 100644 --- a/panel/classes/Panel/Vmail/MboxesAdd.php +++ b/panel/classes/Panel/Vmail/MboxesAdd.php @@ -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); } }