X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a2ba8708cbf7d3a7504a6b097be51669dff139c8..b11461907f02b4f583e22ccdf90550f00f1f39b7:/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) {