Skip to content

Commit fb1863c

Browse files
committed
FS#942 - Problem with email quota check.
1 parent bd25d28 commit fb1863c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/mail/mail_user_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function onSubmit() {
142142
}
143143

144144
// Check the quota and adjust
145-
if($client["limit_mailquota"] >= 0) {
145+
if(isset($_POST["quota"]) && $client["limit_mailquota"] >= 0) {
146146
$tmp = $app->db->queryOneRecord("SELECT sum(quota) as mailquota FROM mail_user WHERE mailuser_id != ".intval($this->id)." AND sys_groupid = $client_group_id");
147147
$mailquota = $tmp["mailquota"] / 1024 / 1024;
148148
$new_mailbox_quota = intval($this->dataRecord["quota"]);

0 commit comments

Comments
 (0)