[Mapbender-commits] r3138 - branches/2.5/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Oct 7 04:48:19 EDT 2008


Author: christoph
Date: 2008-10-07 04:48:19 -0400 (Tue, 07 Oct 2008)
New Revision: 3138

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

Modified: branches/2.5/http/classes/class_wms.php
===================================================================
--- branches/2.5/http/classes/class_wms.php	2008-10-07 08:15:38 UTC (rev 3137)
+++ branches/2.5/http/classes/class_wms.php	2008-10-07 08:48:19 UTC (rev 3138)
@@ -389,10 +389,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