X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b4fec57b6d53f8e8a45c46ff11f13cbcbea1006a..77a64e269a98222e99f90d56c1ce42c61a26ac6d:/lib-php/website/details.php diff --git a/lib-php/website/details.php b/lib-php/website/details.php index c16725e2..0d67ec83 100644 --- a/lib-php/website/details.php +++ b/lib-php/website/details.php @@ -83,7 +83,7 @@ if ($sOsmType && $iOsmId > 0) { } if ($sPlaceId === false) { - throw new Exception('No place with that OSM ID found.', 404); + throw new \Exception('No place with that OSM ID found.', 404); } } else { if ($sPlaceId === false) { @@ -146,7 +146,7 @@ $sSQL .= " WHERE place_id = $iPlaceID"; $aPointDetails = $oDB->getRow($sSQL, null, 'Could not get details of place object.'); if (!$aPointDetails) { - throw new Exception('No place with that place ID found.', 404); + throw new \Exception('No place with that place ID found.', 404); } $aPointDetails['localname'] = $aPointDetails['localname']?$aPointDetails['localname']:$aPointDetails['housenumber'];