avoid warnings when geometry of object cannot be determined

This commit is contained in:
Sarah Hoffmann
2012-02-06 23:14:21 +00:00
parent 3abbeb5f08
commit 7239687e5b
3 changed files with 4 additions and 2 deletions

View File

@@ -1161,7 +1161,7 @@
}
// Output data suitable for display (points and a bounding box)
if ($bShowPolygons)
if ($bShowPolygons && isset($aPolyPoints))
{
$aResult['aPolyPoints'] = array();
foreach($aPolyPoints as $aPoint)