mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 01:25:56 +00:00
fix crash caused by non-numeric non-null _SESSION[uid] passed to sql logger
This commit is contained in:
@@ -38,7 +38,7 @@ class Logger {
|
||||
return self::get_instance()->_log($errno, $errstr, $context);
|
||||
}
|
||||
|
||||
private function _log($errno, $errstr, $context = "") {
|
||||
private function _log(int $errno, string $errstr, $context = "") {
|
||||
if ($this->adapter)
|
||||
return $this->adapter->log_error($errno, $errstr, '', 0, $context);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user