[Mapbender-commits] r9085 - trunk/mapbender/lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Sep 25 03:18:06 PDT 2014
Author: armin11
Date: 2014-09-25 03:18:06 -0700 (Thu, 25 Sep 2014)
New Revision: 9085
Modified:
trunk/mapbender/lib/ajax.php
Log:
Bugfix for handling ajax calls, when values of "0" are used - they are wrongly interpreted from php if clauses.
Modified: trunk/mapbender/lib/ajax.php
===================================================================
--- trunk/mapbender/lib/ajax.php 2014-09-25 10:16:51 UTC (rev 9084)
+++ trunk/mapbender/lib/ajax.php 2014-09-25 10:18:06 UTC (rev 9085)
@@ -67,8 +67,9 @@
}
public function getParameter ($key) {
- if (is_object($this->paramObject) && $this->paramObject->$key) {
+ if ((is_object($this->paramObject) && $this->paramObject->$key) || (is_object($this->paramObject) && $this->paramObject->$key == "0")) {
return $this->paramObject->$key;
+
}
return null;
}
@@ -223,4 +224,4 @@
return $this->json->encode($obj);
}
}
-?>
\ No newline at end of file
+?>
More information about the Mapbender_commits
mailing list