X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/88beeb79164d0fec40778678e5d93ae44b8f07d8..1787892d32351988231a60b71900c6a623609c54:/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']; }