From e60ede3fbffed665d2fa1f006c9f8a778d549cb3 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mon, 9 Apr 2012 17:55:00 +0000 Subject: [PATCH] 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 --- list-virtual.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/list-virtual.php b/list-virtual.php index c3de2454..f1aebf32 100644 --- a/list-virtual.php +++ b/list-virtual.php @@ -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? } }