From 9f31c82bbcf477dae1680b24e019fee8c7e4f628 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 10 Dec 2015 12:57:42 +0100 Subject: [PATCH] Fixed problems with pChart when any value is 0. Tiquet: #3053 (cherry picked from commit 53065646b006dc1f8842384dbfceeec5c2bf16d1) --- 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 cbf2be7f61..13efd86886 100755 --- a/pandora_console/include/graphs/pChart/pDraw.class.php +++ b/pandora_console/include/graphs/pChart/pDraw.class.php @@ -2548,6 +2548,7 @@ function modulo($Value1,$Value2) { + if (floor($Value1) == 0) { return(0); } if (floor($Value2) == 0) { return(0); } if (floor($Value2) != 0) { return($Value1 % $Value2); }