X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8b4b647d772e8cee1064043c2a672431051a1db4..275f3b26560a44099dff762776277812ef0f122f:/website/reverse.php diff --git a/website/reverse.php b/website/reverse.php index 2f1e31ee..0251c8c8 100755 --- a/website/reverse.php +++ b/website/reverse.php @@ -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,9 +62,10 @@ if (isset($aPlace)) { $aPlace = array_merge($aPlace, $aOutlineResult); } } else { - $aPlace = []; + $aPlace = array(); } +logEnd($oDB, $hLog, sizeof($aPlace)?1:0); if (CONST_Debug) { var_dump($aPlace);