X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a7e0d652b1d40a397e1c1386d500101796676c4..4e94e661b3657f8ab4e6d839729ef4346438b9f5:/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(