[Mapbender-commits] r6931 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Sep 23 03:33:48 EDT 2010
Author: christoph
Date: 2010-09-23 07:33:48 +0000 (Thu, 23 Sep 2010)
New Revision: 6931
Modified:
trunk/mapbender/http/classes/class_layer_monitor.php
trunk/mapbender/http/classes/class_wms.php
Log:
fixed type casting issues
Modified: trunk/mapbender/http/classes/class_layer_monitor.php
===================================================================
--- trunk/mapbender/http/classes/class_layer_monitor.php 2010-09-22 14:42:17 UTC (rev 6930)
+++ trunk/mapbender/http/classes/class_layer_monitor.php 2010-09-23 07:33:48 UTC (rev 6931)
@@ -29,6 +29,9 @@
* each layer in the WMC document by one.
*/
function increment($layer_id) {
+ if (!is_numeric($layer_id)) {
+ return false;
+ }
//check if an entry exists for the current layer id
$sql = "SELECT load_count FROM layer_load_count WHERE fkey_layer_id = $1";
Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php 2010-09-22 14:42:17 UTC (rev 6930)
+++ trunk/mapbender/http/classes/class_wms.php 2010-09-23 07:33:48 UTC (rev 6931)
@@ -398,7 +398,7 @@
}
public function __toString () {
- return $this->wms_title;
+ return strval($this->wms_title);
}
function createObjFromXML($url){
More information about the Mapbender_commits
mailing list