]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/hierarchy.php
Allow for postgis being in the default template - not an error if it already is installed
[nominatim.git] / website / hierarchy.php
index a900cde1b2d7747c22f0cf9c3759e60553cf903b..d99040a2f2d31596002aafeb020cb599b29cdf91 100755 (executable)
        $oPlaceLookup->setPlaceId($iPlaceID);
 
        $aPlaceAddress = array_reverse($oPlaceLookup->getAddressDetails());
+
+       if (!sizeof($aPlaceAddress))
+       {
+               echo "Unknown place id.";
+               exit;
+       }
+
        $aBreadcrums = array();
        foreach($aPlaceAddress as $i => $aPlace)
        {