Commit fb1863cd authored by tbrehm's avatar tbrehm

FS#942 - Problem with email quota check.

parent bd25d285
......@@ -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"]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment