summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-07-08 18:26:11 +0200
committerBart Visscher <bartv@thisnet.nl>2013-07-08 18:26:11 +0200
commit4a6803ef9d4d1527f01fe687f8fa701efe5386dd (patch)
treedfb4413e759da7a1f526738ba82735770a6e7ccd
parent2db839c4d36a9c6157e2da6606f6fff1bea2eab0 (diff)
downloadnextcloud-server-4a6803ef9d4d1527f01fe687f8fa701efe5386dd.tar.gz
nextcloud-server-4a6803ef9d4d1527f01fe687f8fa701efe5386dd.zip
Check if logger is set, also no need to return true
-rw-r--r--lib/log/errorhandler.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/log/errorhandler.php b/lib/log/errorhandler.php
index 2a57cbc594f..69cb960de91 100644
--- a/lib/log/errorhandler.php
+++ b/lib/log/errorhandler.php
@@ -29,12 +29,10 @@ class ErrorHandler {
//Fatal errors handler
public static function onShutdown() {
$error = error_get_last();
- if($error) {
+ if($error && self::$logger) {
//ob_end_clean();
$msg = $error['message'] . ' at ' . $error['file'] . '#' . $error['line'];
self::$logger->critical($msg, array('app' => 'PHP'));
- } else {
- return true;
}
}