X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2a39bc6e68a114a02cc57e4bab95cd316f6aa5cf..75f951d254127d8857b6ad95cac241917f88e542:/lib/init-website.php?ds=inline 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; }