Fixed problems with pChart when any value is 0. Tiquet: #3053

(cherry picked from commit 53065646b006dc1f8842384dbfceeec5c2bf16d1)
This commit is contained in:
m-lopez-f 2015-12-10 12:57:42 +01:00
parent bc50bf909c
commit 9f31c82bbc

View File

@ -2548,6 +2548,7 @@
function modulo($Value1,$Value2) function modulo($Value1,$Value2)
{ {
if (floor($Value1) == 0) { return(0); }
if (floor($Value2) == 0) { return(0); } if (floor($Value2) == 0) { return(0); }
if (floor($Value2) != 0) { return($Value1 % $Value2); } if (floor($Value2) != 0) { return($Value1 % $Value2); }