list-virtual:

- if used quota is unknown, display "unknown" instead of "undefined index"


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1362 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 13 years ago
parent 306c5a9688
commit e60ede3fbf

@ -315,6 +315,9 @@ if ((is_array ($tMailbox) and sizeof ($tMailbox) > 0))
{
$divide_quota ['percent'][$i] = min(100, round(($divide_quota ['current'][$i]/max(1,$divide_quota ['quota'][$i]))*100));
$divide_quota ['quota_width'][$i] = ($divide_quota ['percent'][$i] / 100 * 120);
} else {
$divide_quota ['current'][$i] = 'unknown'; # TODO: make translateable
$divide_quota ['quota_width'][$i] = 0; # TODO: use special value?
}
}

Loading…
Cancel
Save