X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8b4b647d772e8cee1064043c2a672431051a1db4..ec6a427e0a7272445c992f6f046ae8cb5f5a534d:/website/reverse.php diff --git a/website/reverse.php b/website/reverse.php index 2f1e31ee..e131a844 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); } } @@ -55,14 +55,16 @@ if (isset($aPlace)) { $aPlace['place_id'], $aPlace['lon'], $aPlace['lat'], - $fRadius + $fRadius, + $fLat, + $fLon ); if ($aOutlineResult) { $aPlace = array_merge($aPlace, $aOutlineResult); } } else { - $aPlace = []; + $aPlace = array(); }