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