[Mapbender-commits] r3202 - branches/noframes/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Nov 7 05:14:08 EST 2008
Author: christoph
Date: 2008-11-07 05:14:08 -0500 (Fri, 07 Nov 2008)
New Revision: 3202
Modified:
branches/noframes/http/classes/class_wms.php
Log:
bug fix
style name must be "" not NULL
Modified: branches/noframes/http/classes/class_wms.php
===================================================================
--- branches/noframes/http/classes/class_wms.php 2008-11-07 10:12:59 UTC (rev 3201)
+++ branches/noframes/http/classes/class_wms.php 2008-11-07 10:14:08 UTC (rev 3202)
@@ -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