mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 05:45:56 +00:00
errorhandler: do not report hidden errors
This commit is contained in:
@@ -6,6 +6,8 @@ require_once "classes/logger/sql.php";
|
||||
function ttrss_error_handler($errno, $errstr, $file, $line, $context) {
|
||||
global $logger;
|
||||
|
||||
if (error_reporting() == 0) return false;
|
||||
|
||||
if (!$logger) $logger = new Logger_SQL();
|
||||
|
||||
$file = substr(str_replace(dirname(dirname(__FILE__)), "", $file), 1);
|
||||
|
||||
Reference in New Issue
Block a user