]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
replace PHP sizeof() with either count() or empty()
[nominatim.git] / website / reverse.php
index 2f1e31eeb369cbfa1a1f7c892194f01db2e4fd1d..4ce5833f6129bb9a884a5ae6ee0708e7ac29f2fd 100755 (executable)
@@ -41,7 +41,7 @@ if ($sOsmType && $iOsmId > 0) {
 
     if ($oLookup) {
         $aPlaces = $oPlaceLookup->lookup(array($oLookup->iId => $oLookup));
-        if (sizeof($aPlaces)) {
+        if (!empty($aPlaces)) {
             $aPlace = reset($aPlaces);
         }
     }