From c44c4e9fe1359489afa671f1eb5e61f4361cec57 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Dec 2008 06:46:05 +0000 Subject: [PATCH] Updated Quota progress bar. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13247 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../mail/personal/mail/class_mail-methods.inc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gosa-plugins/mail/personal/mail/class_mail-methods.inc b/gosa-plugins/mail/personal/mail/class_mail-methods.inc index d2d76936d..0908fb1cb 100644 --- a/gosa-plugins/mail/personal/mail/class_mail-methods.inc +++ b/gosa-plugins/mail/personal/mail/class_mail-methods.inc @@ -728,12 +728,13 @@ class mailMethod{ static function quota_to_image($use,$quota) { - if($use == -1 ){ - return(_("Unknown")); - }elseif($quota == 0){ - return(progressbar(100,100,15,true)); + if($use == -1){ + return("  "._("Unknown")); + }elseif(empty($quota)){ + return("  "._("Unlimited")); }else{ - return(progressbar(round(($use * 100)/ $quota),100,15,true)); + $usage =(int) ($use/$quota) * 100; + return(""); } } } -- 2.30.2