From b3e5514709bb9931e7327de02620e6d2ec0272b0 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Wed, 18 Mar 2020 14:36:53 +0000 Subject: [PATCH] merge: 338fb8c5644d3186c26232d0c1e85a4375b20386 from master - see https://github.com/postfixadmin/postfixadmin/issues/347 and https://github.com/postfixadmin/postfixadmin/issues/342 --- model/MailboxHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/MailboxHandler.php b/model/MailboxHandler.php index 867366e7..99c3e736 100644 --- a/model/MailboxHandler.php +++ b/model/MailboxHandler.php @@ -203,7 +203,7 @@ class MailboxHandler extends PFAHandler { protected function read_from_db_postprocess($db_result) { foreach ($db_result as $key => $row) { - if (isset($row['quota'])) { # quota could be disabled in $struct + if (isset($row['quota']) && is_numeric($row['quota']) && $row['quota'] > -1) { # quota could be disabled in $struct $db_result[$key]['quotabytes'] = $row['quota']; $db_result[$key]['quota'] = divide_quota($row['quota']); # convert quota to MB } else {