]> git.wh0rd.org Git - tt-rss.git/commitdiff
report db error on connect
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 7 Sep 2005 14:16:51 +0000 (15:16 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 7 Sep 2005 14:16:51 +0000 (15:16 +0100)
backend.php

index 556c9469791f890a691205d10d0212ecad881435..957347967c32b28ee0064a2a9b3ab2b09e46a957 100644 (file)
@@ -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'");
        }