diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/quotaimg.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/quotaimg.php b/bin/quotaimg.php index 31f5cd6f2..fc3997a39 100644 --- a/bin/quotaimg.php +++ b/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; |