X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/64957170360f6d5bdf00c741de30b7df77f23bd3..fe3dba3fd717917301b792ec83472287fa37d205:/lib/template/search-json.php?ds=inline diff --git a/lib/template/search-json.php b/lib/template/search-json.php index 774b5be0..7c87f636 100644 --- a/lib/template/search-json.php +++ b/lib/template/search-json.php @@ -43,7 +43,7 @@ foreach ($aSearchResults as $iResNum => $aPointDetails) { $aPlace['icon'] = $aPointDetails['icon']; } - if (isset($aPointDetails['address']) && sizeof($aPointDetails['address'])) { + if (isset($aPointDetails['address']) && !empty($aPointDetails['address'])) { $aPlace['address'] = $aPointDetails['address']; }