[Mapbender-commits] r6961 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Sep 29 08:43:47 EDT 2010
Author: christoph
Date: 2010-09-29 12:43:47 +0000 (Wed, 29 Sep 2010)
New Revision: 6961
Modified:
trunk/mapbender/http/php/mod_loadwmc_server.php
Log:
param has to be array or empty
Modified: trunk/mapbender/http/php/mod_loadwmc_server.php
===================================================================
--- trunk/mapbender/http/php/mod_loadwmc_server.php 2010-09-29 12:43:25 UTC (rev 6960)
+++ trunk/mapbender/http/php/mod_loadwmc_server.php 2010-09-29 12:43:47 UTC (rev 6961)
@@ -60,7 +60,12 @@
$wmc->createFromXml($updatedWMC);
$skipWms = $ajaxResponse->getParameter("skipWms");
- $jsArray = $wmc->toJavaScript($skipWms);
+ if (is_array($skipWms)) {
+ $jsArray = $wmc->toJavaScript($skipWms);
+ }
+ else {
+ $jsArray = $wmc->toJavaScript();
+ }
if ($jsArray) {
$resultObj["javascript"] = $jsArray;
$ajaxResponse->setResult($resultObj);
More information about the Mapbender_commits
mailing list