1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 17:35:57 +00:00

remove db_connect, db_close; CLI fixes

This commit is contained in:
Andrew Dolgov
2013-04-17 17:00:24 +04:00
parent 6322ac79a0
commit eefaa2df38
10 changed files with 4 additions and 36 deletions

View File

@@ -6,7 +6,7 @@ require_once "classes/logger/sql.php";
function ttrss_error_handler($errno, $errstr, $file, $line, $context) {
global $logger;
if (error_reporting() == 0) return false;
if (error_reporting() == 0 || !$errno) return false;
if (!$logger) $logger = new Logger_SQL();
@@ -30,6 +30,8 @@ function ttrss_fatal_handler() {
$line = $error["line"];
$errstr = $error["message"];
if (!$errno) return false;
$context = debug_backtrace();
$file = substr(str_replace(dirname(dirname(__FILE__)), "", $file), 1);