svn commit: r376 - trunk/mapbender/http/classes/class_wms.php
uli at osgeo.org
uli at osgeo.org
Thu Jun 1 08:43:18 EDT 2006
Author: uli
Date: 2006-06-01 12:43:18+0000
New Revision: 376
Modified:
trunk/mapbender/http/classes/class_wms.php
Log:
bug fixed: parent layer value
Modified: trunk/mapbender/http/classes/class_wms.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_wms.php?view=diff&rev=376&p1=trunk/mapbender/http/classes/class_wms.php&p2=trunk/mapbender/http/classes/class_wms.php&r1=375&r2=376
==============================================================================
--- trunk/mapbender/http/classes/class_wms.php (original)
+++ trunk/mapbender/http/classes/class_wms.php 2006-06-01 12:43:18+0000
@@ -689,9 +689,12 @@
else {
$tmpPos .= 0;
}
- if(empty($this->objLayer[$i]->layer_parent)){
- $this->objLayer[$i]->layer_parent = '""';
+ echo $this->objLayer[$i]->layer_name. " x ".$this->objLayer[$i]->layer_parent."<br>";
+ if($this->objLayer[$i]->layer_parent == '' && $this->objLayer[$i]->layer_parent != '0'){
+ $this->objLayer[$i]->layer_parent = '';
}
+ echo $this->objLayer[$i]->layer_name. " x ".$this->objLayer[$i]->layer_parent."<br>";
+
$v = array($myWMS,$tmpPos,$this->objLayer[$i]->layer_parent,$this->objLayer[$i]->layer_name,
$this->objLayer[$i]->layer_title,
$this->objLayer[$i]->layer_queryable,$this->objLayer[$i]->layer_minscale,
@@ -701,7 +704,7 @@
$res = db_prep_query($sql,$v,$t);
if(!$res){
db_rollback();
- }
+ }
# save the id of each layer: set param2 true
$this->objLayer[$i]->db_id = db_insert_id($con, 'layer','layer_id');
More information about the Mapbender_commits
mailing list