mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
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…
x
Reference in New Issue
Block a user