We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cefa8d9 commit 4bf1186Copy full SHA for 4bf1186
1 file changed
interface/web/mail/mail_user_edit.php
@@ -105,7 +105,7 @@ function onShowEnd() {
105
unset($tmp_user);
106
107
// Convert quota from Bytes to MB
108
- $app->tpl->setVar("quota",$this->dataRecord["quota"] / 1024 / 1024);
+ if($this->dataRecord["quota"] != -1) $app->tpl->setVar("quota",$this->dataRecord["quota"] / 1024 / 1024);
109
110
parent::onShowEnd();
111
}
@@ -169,7 +169,7 @@ function onSubmit() {
169
unset($this->dataRecord["email_domain"]);
170
171
// Convert quota from MB to Bytes
172
- $this->dataRecord["quota"] = $this->dataRecord["quota"] * 1024 * 1024;
+ if($this->dataRecord["quota"] != -1) $this->dataRecord["quota"] = $this->dataRecord["quota"] * 1024 * 1024;
173
174
// setting Maildir, Homedir, UID and GID
175
$app->uses('getconf');
0 commit comments