From 7a51032cab095dec5d1729a1fd8482f25970fdc7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Apr 2013 01:26:55 +0400 Subject: [PATCH] errorhandler: do not report hidden errors --- include/errorhandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/errorhandler.php b/include/errorhandler.php index bb60592b..d5674826 100644 --- a/include/errorhandler.php +++ b/include/errorhandler.php @@ -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); -- 2.39.5