make sure place exists before printing hierarchy

This commit is contained in:
Sarah Hoffmann 2015-03-29 19:03:51 +02:00
parent eb1d8894b9
commit 133dd2e974

View File

@ -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)
{