summaryrefslogtreecommitdiff
path: root/include/errorhandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/errorhandler.php')
-rw-r--r--include/errorhandler.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/errorhandler.php b/include/errorhandler.php
index 9acef2357..52431c2de 100644
--- a/include/errorhandler.php
+++ b/include/errorhandler.php
@@ -6,7 +6,8 @@ function ttrss_error_handler($errno, $errstr, $file, $line, $context) {
$file = substr(str_replace(dirname(dirname(__FILE__)), "", $file), 1);
- return Logger::get()->log_error($errno, $errstr, $file, $line, $context);
+ if (class_exists("Logger"))
+ return Logger::get()->log_error($errno, $errstr, $file, $line, $context);
}
function ttrss_fatal_handler() {
@@ -26,7 +27,8 @@ function ttrss_fatal_handler() {
$file = substr(str_replace(dirname(dirname(__FILE__)), "", $file), 1);
- return Logger::get()->log_error($errno, $errstr, $file, $line, $context);
+ if (class_exists("Logger"))
+ return Logger::get()->log_error($errno, $errstr, $file, $line, $context);
}
return false;