From 923091f972b54c1fc4a9b5335cb9f8eb9df8f55d Mon Sep 17 00:00:00 2001 From: fermin831 Date: Wed, 11 May 2016 10:23:35 +0200 Subject: [PATCH] Patched library to solve some infinite loops in static graphics Tickets #3438 --- pandora_console/include/graphs/pChart/pDraw.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora_console/include/graphs/pChart/pDraw.class.php b/pandora_console/include/graphs/pChart/pDraw.class.php index d5f891fba0..a607861e6a 100755 --- a/pandora_console/include/graphs/pChart/pDraw.class.php +++ b/pandora_console/include/graphs/pChart/pDraw.class.php @@ -1850,6 +1850,7 @@ $Data["Axis"][$AxisID]["Min"] = $AxisMin-$AutoMargin; $Data["Axis"][$AxisID]["Max"] = $AxisMax+$AutoMargin; } $MaxDivs = floor($Height/$MinDivHeight); + if ($MaxDivs == 0) { $MaxDivs = 1;} if ( $Mode == SCALE_MODE_ADDALL_START0 ) { $Data["Axis"][$AxisID]["Min"] = 0; }