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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Aug 3 04:57:19 PDT 2015


Author: armin11
Date: 2015-08-03 04:57:19 -0700 (Mon, 03 Aug 2015)
New Revision: 9274

Modified:
   trunk/mapbender/http/classes/class_wms.php
Log:
bugfix for update scale hints in relevant guis

Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php	2015-08-03 09:37:27 UTC (rev 9273)
+++ trunk/mapbender/http/classes/class_wms.php	2015-08-03 11:57:19 UTC (rev 9274)
@@ -3100,7 +3100,7 @@
 				if(!$res1){db_rollback();
 				}
 			}
-			if($row["gui_layer_maxscale"] > $this->objLayer[$i]->layer_maxscale){
+			if(($row["gui_layer_maxscale"] > $this->objLayer[$i]->layer_maxscale) && ((integer)$this->objLayer[$i]->layer_maxscale <> 0)){
 				$sql1 = "UPDATE gui_layer set gui_layer_maxscale = $1 ";
 				$sql1 .= "WHERE fkey_layer_id = $2 and fkey_gui_id = $3";
 				$v = array($this->objLayer[$i]->layer_maxscale,$l_id,$gui_id);



More information about the Mapbender_commits mailing list