Skip to content

Commit 139b351

Browse files
committed
Mail is the exception with 0 == unlimited, instead of -1
1 parent 90b9f4e commit 139b351

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

interface/web/dashboard/dashlets/mailquota.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ function show($limit_to_client_id = null) {
2626
foreach($emails as &$email) {
2727
$email['email'] = $app->functions->idn_decode($email['email']);
2828
$email['used'] = $app->functions->formatBytes($email['used_raw'], 0);
29+
// Mail is the exception with 0 == unlimited, instead of -1
30+
if ($email['quota_raw'] == 0) {
31+
$email['quota_raw'] = -1;
32+
}
33+
2934
$email['quota'] = $app->functions->formatBytesOrUnlimited($email['quota_raw'], 0);
3035
$total_used += $email['used_raw'];
3136
}

0 commit comments

Comments
 (0)