1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 14:15:56 +00:00

errorhandler: check for Logger class existing

This commit is contained in:
Andrew Dolgov
2013-05-13 13:32:51 +04:00
parent 5e49db8dc2
commit 15d52d5152

View File

@@ -6,6 +6,7 @@ function ttrss_error_handler($errno, $errstr, $file, $line, $context) {
$file = substr(str_replace(dirname(dirname(__FILE__)), "", $file), 1);
if (class_exists("Logger"))
return Logger::get()->log_error($errno, $errstr, $file, $line, $context);
}
@@ -26,6 +27,7 @@ function ttrss_fatal_handler() {
$file = substr(str_replace(dirname(dirname(__FILE__)), "", $file), 1);
if (class_exists("Logger"))
return Logger::get()->log_error($errno, $errstr, $file, $line, $context);
}