[Mapbender-commits] r7062 - branches/2.6/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Oct 26 02:57:57 EDT 2010


Author: verenadiewald
Date: 2010-10-25 23:57:57 -0700 (Mon, 25 Oct 2010)
New Revision: 7062

Modified:
   branches/2.6/http/classes/class_wms.php
Log:
sprintf for values minscale and maxscale to avoid invalid integer values like "1.2+E" 

Modified: branches/2.6/http/classes/class_wms.php
===================================================================
--- branches/2.6/http/classes/class_wms.php	2010-10-25 16:15:09 UTC (rev 7061)
+++ branches/2.6/http/classes/class_wms.php	2010-10-26 06:57:57 UTC (rev 7062)
@@ -659,6 +659,8 @@
 					if($element[attributes][min]>1000) $min = 0; else $min = $element[attributes][min]; 	
 					$this->objLayer[$cnt_layer]->layer_minscale = round(($min * 2004.3976484406788493955738891127));
 					$this->objLayer[$cnt_layer]->layer_maxscale = round(($max * 2004.3976484406788493955738891127));
+					$this->objLayer[$cnt_layer]->layer_minscale = sprintf("%u", $this->objLayer[$cnt_layer]->layer_minscale);
+					$this->objLayer[$cnt_layer]->layer_maxscale = sprintf("%u", $this->objLayer[$cnt_layer]->layer_maxscale);
 				}
 			} 
 			else {



More information about the Mapbender_commits mailing list