[Mapbender-commits] r10042 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jan 31 07:03:07 PST 2019
Author: armin11
Date: 2019-01-31 07:03:07 -0800 (Thu, 31 Jan 2019)
New Revision: 10042
Modified:
trunk/mapbender/http/php/mod_callCswMetadata.php
Log:
Give back empty result list instead of none
Modified: trunk/mapbender/http/php/mod_callCswMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_callCswMetadata.php 2019-01-28 16:41:47 UTC (rev 10041)
+++ trunk/mapbender/http/php/mod_callCswMetadata.php 2019-01-31 15:03:07 UTC (rev 10042)
@@ -872,8 +872,16 @@
//echo "Search time: ".$usedSearchCswTime."<br>";
//echo "Parsing time: ".$usedParsingMetadataTime."<br>";
}
+ if (count($metadataRecord) == 0) {
+ $resultObject->{$searchResource}->md->nresults = 0;
+ $resultObject->{$searchResource}->md->p = $searchPages[$i];
+ $resultObject->{$searchResource}->md->rpp = $maxResults;
+ $resultObject->{$searchResource}->md->genTime = $usedSearchCswTime;
+ $resultObject->{$searchResource}->srv = array();
+ }
$i++;
}
+
//add filter object
$resultObject->searchFilter = $queryJSON->searchFilter;
echo json_encode($resultObject);
More information about the Mapbender_commits
mailing list