[fusion-commits] r2100 - trunk/widgets/Theme/classes
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Mar 16 05:25:19 EDT 2010
Author: liuar
Date: 2010-03-16 05:25:17 -0400 (Tue, 16 Mar 2010)
New Revision: 2100
Modified:
trunk/widgets/Theme/classes/theme.php
Log:
Fixed Ticket #371 Theme: Warning message pop-up when theme on map whose layer doesn't have feature class
Modified: trunk/widgets/Theme/classes/theme.php
===================================================================
--- trunk/widgets/Theme/classes/theme.php 2010-03-15 19:56:34 UTC (rev 2099)
+++ trunk/widgets/Theme/classes/theme.php 2010-03-16 09:25:17 UTC (rev 2100)
@@ -53,7 +53,10 @@
if((substr($layer->GetName(), 0, 1) != "_") && (substr(strtoupper($layer->GetFeatureSourceId()), 0, 7) != "SESSION"))
{
$resId = new MgResourceIdentifier($layer->GetFeatureSourceId());
- $schemaClass = explode(':', $layer->GetFeatureClassName());
+ $layerFeatureClassName = $layer->GetFeatureClassName();
+ if($layerFeatureClassName == "")
+ continue;
+ $schemaClass = explode(':', $layerFeatureClassName);
$classDef = $featureService->GetClassDefinition($resId, $schemaClass[0], $schemaClass[1]);
$propDef = $classDef->GetProperties()->GetItem($layer->GetFeatureGeometryName());
More information about the fusion-commits
mailing list