Skip to content

Commit

Permalink
merge: 338fb8c from master - see #347 and #342
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGoodwin committed Apr 16, 2020
1 parent 62eac78 commit b3e5514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/MailboxHandler.php
Expand Up @@ -203,7 +203,7 @@ public function mergeId($values) {

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 {
Expand Down

0 comments on commit b3e5514

Please sign in to comment.