Skip to content

Commit 4bf1186

Browse files
committed
Fixed a problem with maildir quota.
1 parent cefa8d9 commit 4bf1186

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/mail/mail_user_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function onShowEnd() {
105105
unset($tmp_user);
106106

107107
// Convert quota from Bytes to MB
108-
$app->tpl->setVar("quota",$this->dataRecord["quota"] / 1024 / 1024);
108+
if($this->dataRecord["quota"] != -1) $app->tpl->setVar("quota",$this->dataRecord["quota"] / 1024 / 1024);
109109

110110
parent::onShowEnd();
111111
}
@@ -169,7 +169,7 @@ function onSubmit() {
169169
unset($this->dataRecord["email_domain"]);
170170

171171
// Convert quota from MB to Bytes
172-
$this->dataRecord["quota"] = $this->dataRecord["quota"] * 1024 * 1024;
172+
if($this->dataRecord["quota"] != -1) $this->dataRecord["quota"] = $this->dataRecord["quota"] * 1024 * 1024;
173173

174174
// setting Maildir, Homedir, UID and GID
175175
$app->uses('getconf');

0 commit comments

Comments
 (0)