X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0df5f77bc4c92e2f8f635105441779277435da67..986956e4b43c8ca1890125c9cafcbb97bcc5325a:/lib/init-website.php diff --git a/lib/init-website.php b/lib/init-website.php index ae2a5d36..39df4022 100644 --- a/lib/init-website.php +++ b/lib/init-website.php @@ -2,7 +2,6 @@ require_once('init.php'); require_once('ParameterParser.php'); -require_once('DatabaseError.php'); require_once(CONST_Debug ? 'DebugHtml.php' : 'DebugNone.php'); /*************************************************************************** @@ -14,9 +13,7 @@ require_once(CONST_Debug ? 'DebugHtml.php' : 'DebugNone.php'); function chksql($oSql, $sMsg = 'Database request failed') { - if (!PEAR::isError($oSql)) return $oSql; - - throw new Nominatim\DatabaseError($sMsg, 500, null, $oSql); + return $oSql; }