mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 10:05:58 +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)
|
if ($this->adapter)
|
||||||
return $this->adapter->log_error($errno, $errstr, '', 0, $context);
|
return $this->adapter->log_error($errno, $errstr, '', 0, $context);
|
||||||
else
|
else
|
||||||
return false;
|
return user_error($errstr, $errno);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function __clone() {
|
private function __clone() {
|
||||||
|
|||||||
Reference in New Issue
Block a user