You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-01-12 22:51:27 +03:00
fix MailboxHandler -> adding mailbox with empty quota field
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user