X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/64957170360f6d5bdf00c741de30b7df77f23bd3..275f3b26560a44099dff762776277812ef0f122f:/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';