0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

fix MailboxHandler -> adding mailbox with empty quota field

This commit is contained in:
David Goodwin 2020-05-15 20:30:31 +01:00
parent e7ebc6667e
commit 94fff02d39

View File

@ -224,6 +224,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');