summaryrefslogtreecommitdiff
path: root/include/errorhandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/errorhandler.php')
-rw-r--r--include/errorhandler.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/errorhandler.php b/include/errorhandler.php
index b1a0d3d0c..2c8d35f83 100644
--- a/include/errorhandler.php
+++ b/include/errorhandler.php
@@ -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);