X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/d79a2bb17eef64945f776deae2e43068ecc05b65..27bc8d4f7bb907699dbb974e8159f75bead831c9:/lib/template/search-batch-json.php diff --git a/lib/template/search-batch-json.php b/lib/template/search-batch-json.php index 09ea48b6..513f3c2b 100644 --- a/lib/template/search-batch-json.php +++ b/lib/template/search-batch-json.php @@ -49,7 +49,7 @@ foreach ($aBatchResults as $aSearchResults) { $aPlace['icon'] = $aPointDetails['icon']; } - if (isset($aPointDetails['address']) && sizeof($aPointDetails['address'])>0) { + if (isset($aPointDetails['address']) && !empty($aPointDetails['address'])) { $aPlace['address'] = $aPointDetails['address']; }