mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-29 16:04:07 +03:00
make sure place exists before printing hierarchy
This commit is contained in:
parent
eb1d8894b9
commit
133dd2e974
@ -64,6 +64,13 @@
|
|||||||
$oPlaceLookup->setPlaceId($iPlaceID);
|
$oPlaceLookup->setPlaceId($iPlaceID);
|
||||||
|
|
||||||
$aPlaceAddress = array_reverse($oPlaceLookup->getAddressDetails());
|
$aPlaceAddress = array_reverse($oPlaceLookup->getAddressDetails());
|
||||||
|
|
||||||
|
if (!sizeof($aPlaceAddress))
|
||||||
|
{
|
||||||
|
echo "Unknown place id.";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
$aBreadcrums = array();
|
$aBreadcrums = array();
|
||||||
foreach($aPlaceAddress as $i => $aPlace)
|
foreach($aPlaceAddress as $i => $aPlace)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user