X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6c1977b448e8b195bf96b6144674ffe0527e79de..f6a76ebcd5c255eaa8e674c5176ef29690a7f66c:/website/hierarchy.php?ds=inline diff --git a/website/hierarchy.php b/website/hierarchy.php index 8f2f5237..9b488f83 100755 --- a/website/hierarchy.php +++ b/website/hierarchy.php @@ -62,7 +62,7 @@ $oPlaceLookup->setIncludeAddressDetails(true); $aPlaceAddress = array_reverse($oPlaceLookup->getAddressDetails($iPlaceID)); -if (!sizeof($aPlaceAddress)) userError('Unknown place id.'); +if (empty($aPlaceAddress)) userError('Unknown place id.'); $aBreadcrums = array(); foreach ($aPlaceAddress as $i => $aPlace) { @@ -100,7 +100,7 @@ $sSQL .= ' where parent_place_id in ('.join(',', $aRelatedPlaceIDs).') and name $sSQL .= ' order by rank_address asc,rank_search asc,localname,class, type,housenumber'; $aParentOfLines = chksql($oDB->getAll($sSQL)); -if (sizeof($aParentOfLines)) { +if (!empty($aParentOfLines)) { echo '
There are more child objects which are not shown.
'; } echo '';