From d25632cc6e638c9dd072e2ff0997ed90df1643cb Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sat, 18 Apr 2020 19:23:17 +0100 Subject: [PATCH] see: https://github.com/postfixadmin/postfixadmin/issues/347 - really patch MailboxHandler::storemore() ... --- model/MailboxHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/MailboxHandler.php b/model/MailboxHandler.php index 99c3e736..03fd85ff 100644 --- a/model/MailboxHandler.php +++ b/model/MailboxHandler.php @@ -217,7 +217,7 @@ class MailboxHandler extends PFAHandler { protected function beforestore() { - if (isset($this->values['quota']) && $this->values['quota'] != -1) { + if (isset($this->values['quota']) && is_numeric($this->values['quota']) && $this->values['quota'] != -1) { $multiplier = Config::read('quota_multiplier'); if ($multiplier == 0 || !is_numeric($multiplier)) { // or empty string, or null, or false... $multiplier = 1;