From: Andrew Dolgov Date: Wed, 7 Sep 2005 14:16:51 +0000 (+0100) Subject: report db error on connect X-Git-Tag: 1.0.3~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a4b5d75cf642d9dbbc8c15889411cc2e75e1de71;p=tt-rss.git report db error on connect --- diff --git a/backend.php b/backend.php index 556c9469..95734796 100644 --- a/backend.php +++ b/backend.php @@ -6,17 +6,8 @@ require_once "functions.php"; require_once "magpierss/rss_fetch.inc"; - error_reporting(0); - $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); - error_reporting (E_ERROR | E_WARNING | E_PARSE); - - if (!$link) { - print "Could not connect to database. Please check local configuration."; - return; - } - if (DB_TYPE == "pgsql") { pg_query("set client_encoding = 'utf-8'"); }