mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed problems with pChart when any value is 0. Tiquet: #3053
(cherry picked from commit 53065646b006dc1f8842384dbfceeec5c2bf16d1)
This commit is contained in:
parent
bc50bf909c
commit
9f31c82bbc
@ -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); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user