1
0
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:
Andrew Dolgov
2021-02-25 18:21:48 +03:00
parent 34c74400a4
commit 8915bd1b21
3 changed files with 8 additions and 3 deletions

View File

@@ -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