mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-12 23:45:55 +00:00
route Logger:log() to user_error() if there's no adapter
This commit is contained in:
@@ -46,7 +46,7 @@ class Logger {
|
||||
if ($this->adapter)
|
||||
return $this->adapter->log_error($errno, $errstr, '', 0, $context);
|
||||
else
|
||||
return false;
|
||||
return user_error($errstr, $errno);
|
||||
}
|
||||
|
||||
private function __clone() {
|
||||
|
||||
Reference in New Issue
Block a user