Evade zero division PHP Warning due to float overflow by factor
This commit is contained in:
parent
d4ebe9761c
commit
1bb1344530
|
@ -2556,6 +2556,7 @@
|
|||
if (floor($Value2) == 0) { return(0); }
|
||||
if (is_infinite($Value2)) { return(0); }
|
||||
if ($Value2 == 0.0) { return(0); }
|
||||
if ($Value1 > $Value2) { return(0); }
|
||||
if ($this->mod_check($Value1, $Value2)) { return(0); }
|
||||
if (floor($Value2) != 0) { return($Value1 % $Value2); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue