Commit 4b2a9371 authored by ueli heuer's avatar ueli heuer 👾
Browse files

Fix PHP Warning: imagefilledrectangle() expects parameter 4 to be int

parent 16568e2d
......@@ -1936,12 +1936,12 @@ public function device_hostdraw($tab,$cols,$img_type = 'sh') // {{{
if ($nan_in) {
imagefilledrectangle($image,1,1,$length,$width,$lightred);
} else {
imagefilledrectangle($image,1,1,$per_in,$width,$green);
imagefilledrectangle($image,1,1,(int) $per_in,$width,$green);
}
if ($nan_out) {
imagefilledrectangle($image,1,$width+1,$length,2*$width,$lightred);
} else {
imagefilledrectangle($image,1,$width+1,$per_out,2*$width,$blue);
imagefilledrectangle($image,1,$width+1,(int) $per_out,2*$width,$blue);
}
imageline($image,$per100,1,$per100 ,2*$width+1,$red);
imageline($image,$per025,1,$per025 ,2*$width+1,$gray);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment