1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-26 11:59:02 +02:00

errorhandler: do not report hidden errors

This commit is contained in:
Andrew Dolgov 2013-04-17 01:26:55 +04:00
parent 05a46342a4
commit 7a51032cab

View File

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