summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-04-22 06:48:01 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-04-22 06:48:01 +0000
commita5490ca8369ebbcb67d23ce9ae8a9b79db77f3a0 (patch)
tree4581e497b74070f0e203574aeb13376abb45ae88 /roundcubemail
parent2e06827f6b79e80254bac9885f22a23504ee5ba3 (diff)
- fix 1px rectangle fill when mailbox is empty (used=0)
git-svn-id: https://svn.roundcube.net/trunk@2413 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/bin/quotaimg.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/bin/quotaimg.php b/roundcubemail/bin/quotaimg.php
index 31f5cd6f2..fc3997a39 100644
--- a/roundcubemail/bin/quotaimg.php
+++ b/roundcubemail/bin/quotaimg.php
@@ -172,7 +172,8 @@ function genQuota($used, $total, $width, $height)
}
$quota_width = $quota / 100 * $width;
- imagefilledrectangle($im, $border, 0, $quota_width, $height-2*$border, $fill);
+ if ($quota_width)
+ imagefilledrectangle($im, $border, 0, $quota_width, $height-2*$border, $fill);
$string = $quota . '%';
$mid = floor(($width-(strlen($string)*imagefontwidth($font)))/2)+1;