X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8fd7d319b7ef6ee4d4f8cf3b61eb47903e7fb1eb..369a0974bde0951ac01bd72a421e9f60b52ad7c7:/lib/template/search-batch-json.php diff --git a/lib/template/search-batch-json.php b/lib/template/search-batch-json.php index 13c61952..ef2c143a 100644 --- a/lib/template/search-batch-json.php +++ b/lib/template/search-batch-json.php @@ -6,6 +6,7 @@ foreach($aBatchResults as $aSearchResults) { + if (!$aSearchResults) $aSearchResults = array(); $aFilteredPlaces = array(); foreach($aSearchResults as $iResNum => $aPointDetails) {