X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ee0afe8c64023a98132a8e32a311eb71e3c5fa40..4d0693ea69f15660c7fd931c4bce7b648b97ff0f:/lib/template/search-jsonv2.php diff --git a/lib/template/search-jsonv2.php b/lib/template/search-jsonv2.php index 5e52238b..cb09baa4 100644 --- a/lib/template/search-jsonv2.php +++ b/lib/template/search-jsonv2.php @@ -47,7 +47,7 @@ $aPlace['icon'] = $aPointDetails['icon']; } - if (isset($aPointDetails['address'])) + if (isset($aPointDetails['address']) && sizeof($aPointDetails['address'])>0) { $aPlace['address'] = $aPointDetails['address']; }