X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d23fa84471a92664431775fdfa81048180d3f359..9a3bc9cc1e00ffb0e376fe1dd4eda872f967066b:/website/reverse.php diff --git a/website/reverse.php b/website/reverse.php index 2f1e31ee..4ce5833f 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); } }