fix MailboxHandler -> adding mailbox with empty quota field

master
David Goodwin 4 years ago
parent 192c797fe1
commit 864065cd37

@ -227,6 +227,11 @@ class MailboxHandler extends PFAHandler {
$this->values['quota'] = $this->values['quota'] * $multiplier; # convert quota from MB to bytes
}
// Avoid trying to store '' in an integer field
if($this->values['quota'] === '') {
$this->values['quota'] = 0;
}
$ah = new AliasHandler($this->new, $this->admin_username);
$ah->calledBy('MailboxHandler');

Loading…
Cancel
Save