Menu

#84 pPie.class.php - Index Out Of Bounds

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

A certain line in the pPie.class.php file contains a check to see if a sub-index exists.

LINE 963:
if ( !isset($Boundaries[0]["X1"]) ) { $Boundaries[0]["X1"] = $Xc; $Boundaries[0]["Y1"] = $Yc; }

I made the change to have it be:

if ( !isset($Boundaries[0]) || !isset($Boundaries[0]["X1"]) ) { $Boundaries[0]["X1"] = $Xc; $Boundaries[0]["Y1"] = $Yc; }

Which seems to do the trick.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB