diff options
-rw-r--r-- | ui/chart4.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/chart4.php b/ui/chart4.php index f20c2367167..3c4126d029f 100644 --- a/ui/chart4.php +++ b/ui/chart4.php @@ -138,9 +138,9 @@ $maxX = 900; $minX = 0; for ($i = 1; $i <= $weeks; $i++) { - $x1 = (900 / 52) * $sizeX * ($i - 1 - $minX) / ($maxX - $minX); + $x1 = (int) ((900 / 52) * $sizeX * ($i - 1 - $minX) / ($maxX - $minX)); - $yt = $sizeY * $true[$i - 1] / 100; + $yt = (int) ($sizeY * $true[$i - 1] / 100); if ($yt > 0) { imagefilledrectangle($im, $x1 + $shiftX, $shiftYup, $x1 + $shiftX + 8, $yt + $shiftYup, imagecolorallocate($im, 235, 120, 120)); // red } |