diff --git a/interface/web/mail/mail_user_edit.php b/interface/web/mail/mail_user_edit.php index d9de033d95068f51653d884cf8f9da63d6848f42..02d6d350ce6f70aad47d7e86fd219070b98de04d 100644 --- a/interface/web/mail/mail_user_edit.php +++ b/interface/web/mail/mail_user_edit.php @@ -142,7 +142,7 @@ class page_action extends tform_actions { } // Check the quota and adjust - if($client["limit_mailquota"] >= 0) { + if(isset($_POST["quota"]) && $client["limit_mailquota"] >= 0) { $tmp = $app->db->queryOneRecord("SELECT sum(quota) as mailquota FROM mail_user WHERE mailuser_id != ".intval($this->id)." AND sys_groupid = $client_group_id"); $mailquota = $tmp["mailquota"] / 1024 / 1024; $new_mailbox_quota = intval($this->dataRecord["quota"]);