Menu

#28 Fix for division by zero error in pChart line 608

open
nobody
None
5
2011-01-05
2011-01-05
Anonymous
No

On php5.3

pChart line 608: if ( $ID % $SkipLabels == 0 ) {
can generate a division by zero error, this can be solved by changing this line to:

if ( $SkipLabels === 0 || $ID % $SkipLabels === 0 ) {

Discussion


Log in to post a comment.