X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a7e0d652b1d40a397e1c1386d500101796676c4..23e3724abb62649777dd9f8956094dc03acb8510:/lib-php/template/search-batch-json.php diff --git a/lib-php/template/search-batch-json.php b/lib-php/template/search-batch-json.php index c4bc29cb..cc017564 100644 --- a/lib-php/template/search-batch-json.php +++ b/lib-php/template/search-batch-json.php @@ -5,7 +5,9 @@ $aOutput['licence'] = 'Data © OpenStreetMap contributors, ODbL 1.0. https://osm $aOutput['batch'] = array(); foreach ($aBatchResults as $aSearchResults) { - if (!$aSearchResults) $aSearchResults = array(); + if (!$aSearchResults) { + $aSearchResults = array(); + } $aFilteredPlaces = array(); foreach ($aSearchResults as $iResNum => $aPointDetails) { $aPlace = array(