[fusion-commits] r1559 - trunk/widgets/SelectWithin
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Sep 26 13:28:15 EDT 2008
Author: pagameba
Date: 2008-09-26 13:28:15 -0400 (Fri, 26 Sep 2008)
New Revision: 1559
Modified:
trunk/widgets/SelectWithin/SelectWithin.php
Log:
check for null value from GetLayers before calling GetCount on it.
Modified: trunk/widgets/SelectWithin/SelectWithin.php
===================================================================
--- trunk/widgets/SelectWithin/SelectWithin.php 2008-09-26 17:14:28 UTC (rev 1558)
+++ trunk/widgets/SelectWithin/SelectWithin.php 2008-09-26 17:28:15 UTC (rev 1559)
@@ -138,6 +138,9 @@
$sel = new MgSelection($map);
$sel->Open($resourceSrvc, $mapName);
$selLayers = $sel->GetLayers();
+ if ($selLayers == null) {
+ return null;
+ }
$geomColl = new MgGeometryCollection();
$agfRW = new MgAgfReaderWriter();
$polyOnly = true;
More information about the fusion-commits
mailing list