X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/64957170360f6d5bdf00c741de30b7df77f23bd3..9b76a8ffb4c4cd13628d85c00cf286382970b149:/lib/template/search-json.php 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']; }