File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ' );
You can’t perform that action at this time.
0 commit comments