[Mapbender-commits] r2396 - branches/2.5/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Apr 21 04:03:03 EDT 2008
Author: greq
Date: 2008-04-21 04:03:03 -0400 (Mon, 21 Apr 2008)
New Revision: 2396
Modified:
branches/2.5/http/php/mod_exportMapImage_server.php
Log:
Bug fixed: layer which are not checked wont't be exported
Modified: branches/2.5/http/php/mod_exportMapImage_server.php
===================================================================
--- branches/2.5/http/php/mod_exportMapImage_server.php 2008-04-18 14:46:52 UTC (rev 2395)
+++ branches/2.5/http/php/mod_exportMapImage_server.php 2008-04-21 08:03:03 UTC (rev 2396)
@@ -39,7 +39,15 @@
$array_file["filename"] = "image";
$array_urls = explode("___", $wms_urls);
-$image = new weldMaps2Image($array_urls, $array_file);
+foreach ($array_urls as $key => $value) {
+ if (is_null($value) || $value=="") {
+ unset($array_urls[$key]);
+ }
+}
+
+$new_array = array_values($array_urls);
+
+$image = new weldMaps2Image($new_array, $array_file);
$image->getImage($imageType, 'file');
More information about the Mapbender_commits
mailing list