X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ab54a4b8d7ba75f7a1ecd18de34bbce5af291b5b..b66004c3c554c87886afa170f9065be249a3d9d4:/lib/template/address-json.php diff --git a/lib/template/address-json.php b/lib/template/address-json.php index 85f6fe8e..4f0d024f 100644 --- a/lib/template/address-json.php +++ b/lib/template/address-json.php @@ -2,7 +2,7 @@ $aFilteredPlaces = array(); -if (!sizeof($aPlace)) { +if (empty($aPlace)) { if (isset($sError)) $aFilteredPlaces['error'] = $sError; else $aFilteredPlaces['error'] = 'Unable to geocode';