]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
Merge pull request #1038 from mtmail/phpcs-array-key-alignment
[nominatim.git] / website / reverse.php
index 2f1e31eeb369cbfa1a1f7c892194f01db2e4fd1d..3bcac2ce40b2a99c412d6dd027e9c7f0af7bd09d 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);
         }
     }
@@ -62,7 +62,7 @@ if (isset($aPlace)) {
         $aPlace = array_merge($aPlace, $aOutlineResult);
     }
 } else {
-    $aPlace = [];
+    $aPlace = array();
 }