From: Andrew Dolgov Date: Tue, 16 Apr 2013 21:26:55 +0000 (+0400) Subject: errorhandler: do not report hidden errors X-Git-Tag: 1.7.9~25^2~186 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7a51032cab095dec5d1729a1fd8482f25970fdc7;p=tt-rss.git errorhandler: do not report hidden errors --- 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);