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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Mar 9 10:06:19 EST 2007


Author: christoph
Date: 2007-03-09 10:06:19 -0500 (Fri, 09 Mar 2007)
New Revision: 1208

Modified:
   trunk/mapbender/http/classes/class_wms.php
Log:
some minor refactorings and minor bugfixes


Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php	2007-03-09 15:05:01 UTC (rev 1207)
+++ trunk/mapbender/http/classes/class_wms.php	2007-03-09 15:06:19 UTC (rev 1208)
@@ -76,7 +76,8 @@
 			$this->wms_status = true;
 		}
 			
-		
+		$values = null;
+		$tags = null;
 		$this->wms_getcapabilities_doc = $this->char_encode($data);
 		$this->wms_upload_url = $url;
 		
@@ -88,13 +89,13 @@
 		xml_parse_into_struct($parser,$data,$values,$tags);
 		xml_parser_free($parser);
 		
-		$section;
-		$format;
+		$section = null;
+		$format = null;
 		$cnt_format = 0;
 		$parent = array();
 		$myParent = array();
 		$cnt_layer = -1;
-		$request; 
+		$request = null; 
 		$layer_style = array();
 		$cnt_styles = -1;
 		
@@ -1287,6 +1288,7 @@
 		}
 	}
 	function update_gui_wms($myWMS){
+		$mySubmit = null;
 		$sql = "SELECT * FROM gui_wms where fkey_wms_id = $1";
 		$v = array($myWMS);
 		$t = array('i');
@@ -1362,7 +1364,7 @@
 			$error = db_error();
 			$sql = "ROLLBACK";
 			$res = db_query($sql);
-			if($SYS_DBTYPE=="pgsql")
+			if(SYS_DBTYPE=="pgsql")
 				{
 					$sql = "SET AUTOCOMMIT=0";
 				}
@@ -1489,7 +1491,6 @@
 				$this->objLayer[$layer_cnt]->layer_epsg[$count_layer_epsg]["miny"]=$row2["miny"];
 				$this->objLayer[$layer_cnt]->layer_epsg[$count_layer_epsg]["maxx"]=$row2["maxx"];
 				$this->objLayer[$layer_cnt]->layer_epsg[$count_layer_epsg]["maxy"]=$row2["maxy"];
-				$j++;
 				$count_layer_epsg++;
 			}
 			



More information about the Mapbender_commits mailing list