[Mapbender-commits] r10001 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Nov 29 06:48:04 PST 2018


Author: armin11
Date: 2018-11-29 06:48:03 -0800 (Thu, 29 Nov 2018)
New Revision: 10001

Modified:
   trunk/mapbender/http/classes/class_iso19139.php
   trunk/mapbender/http/classes/class_user.php
Log:
Fix http://www.geoportal.rlp.de/trac/ticket/82 and set harvestresult to 1 when parsing metadata xml was successful.

Modified: trunk/mapbender/http/classes/class_iso19139.php
===================================================================
--- trunk/mapbender/http/classes/class_iso19139.php	2018-11-21 14:50:49 UTC (rev 10000)
+++ trunk/mapbender/http/classes/class_iso19139.php	2018-11-29 14:48:03 UTC (rev 10001)
@@ -595,6 +595,7 @@
 			}
 			$e = new mb_notice("classes/class_iso19139.php: sufficient declared inspire conformity: ".$this->inspireInteroperability);
 			$this->qualifyMetadata();
+			$this->harvestResult = 1;
 			return $this;
 		} else {
 			return false;

Modified: trunk/mapbender/http/classes/class_user.php
===================================================================
--- trunk/mapbender/http/classes/class_user.php	2018-11-21 14:50:49 UTC (rev 10000)
+++ trunk/mapbender/http/classes/class_user.php	2018-11-29 14:48:03 UTC (rev 10001)
@@ -797,6 +797,8 @@
 		//
 		$sql .= ") AND fkey_layer_id IN (";
 		$j = 0;
+		//remove empty entries from $layerIdArray
+		$layerIdArray = array_filter($layerIdArray);
 		foreach ($layerIdArray as $layerId) {
 			if ($j > 0) {
 				$sql .= ",";



More information about the Mapbender_commits mailing list