1
0
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:
Andrew Dolgov
2021-03-10 21:31:57 +03:00
parent 03361dda34
commit 324aef9f6f

View File

@@ -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() {