X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0213643ebcba068561691bfbe366fed075d0d3d1..357a99c0ef86cd4d3276c7dd215b58f78640515a:/website/hierarchy.php?ds=inline diff --git a/website/hierarchy.php b/website/hierarchy.php index a900cde1..d99040a2 100755 --- a/website/hierarchy.php +++ b/website/hierarchy.php @@ -64,6 +64,13 @@ $oPlaceLookup->setPlaceId($iPlaceID); $aPlaceAddress = array_reverse($oPlaceLookup->getAddressDetails()); + + if (!sizeof($aPlaceAddress)) + { + echo "Unknown place id."; + exit; + } + $aBreadcrums = array(); foreach($aPlaceAddress as $i => $aPlace) {