]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/address-json.php
Merge pull request #986 from mtmail/php-replace-sizeof
[nominatim.git] / lib / template / address-json.php
index 85f6fe8eb7c5fb7cdfe04fb29fd2ef3e4c9fd83a..4f0d024ff4b7bf40afd141c97081d5f8d386b174 100644 (file)
@@ -2,7 +2,7 @@
 
 $aFilteredPlaces = array();
 
-if (!sizeof($aPlace)) {
+if (empty($aPlace)) {
     if (isset($sError))
         $aFilteredPlaces['error'] = $sError;
     else $aFilteredPlaces['error'] = 'Unable to geocode';