X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a2ba8708cbf7d3a7504a6b097be51669dff139c8..347f8e57c7c62de865b1bb35e72de7e3b2550d48:/website/hierarchy.php 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) {