- fix 1px rectangle fill when mailbox is empty (used=0)

release-0.6
alecpl 16 years ago
parent ac9927c1ff
commit b659c3e242

@ -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;

Loading…
Cancel
Save