[Mapbender-commits] r3139 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Oct 7 04:49:20 EDT 2008


Author: christoph
Date: 2008-10-07 04:49:20 -0400 (Tue, 07 Oct 2008)
New Revision: 3139

Modified:
   trunk/mapbender/http/classes/class_wms.php
Log:
http://trac.osgeo.org/mapbender/ticket/304

Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php	2008-10-07 08:48:19 UTC (rev 3138)
+++ trunk/mapbender/http/classes/class_wms.php	2008-10-07 08:49:20 UTC (rev 3139)
@@ -530,10 +530,10 @@
 			}
 			if($section == "style"){
 				if(mb_strtoupper($element[tag]) == "NAME"){
-					$this->objLayer[$cnt_layer]->layer_style[$cnt_styles]["name"] = $element[value];
+					$this->objLayer[$cnt_layer]->layer_style[$cnt_styles]["name"] = ($element[value] ? $element[value] : '');
 				}
 				if(mb_strtoupper($element[tag]) == "TITLE"){
-					$this->objLayer[$cnt_layer]->layer_style[$cnt_styles]["title"] = $element[value];
+					$this->objLayer[$cnt_layer]->layer_style[$cnt_styles]["title"] = ($element[value] ? $element[value] : '');
 				}
 	      		if(mb_strtoupper($element[tag]) == "LEGENDURL" && $element[type] == "open"){
 					$legendurl = true;



More information about the Mapbender_commits mailing list