Merge pull request 'isLoggedIn adds a message to the system log when it returns false, fix for php8+' (#106) from rodneys_mission/tt-rss:master into master

Reviewed-on: https://gitea.tt-rss.org/tt-rss/tt-rss/pulls/106
This commit is contained in:
fox 2023-04-01 06:36:57 +03:00
commit 269c0f53b8
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class API extends Handler {
}
function isLoggedIn(): bool {
return $this->_wrap(self::STATUS_OK, array("status" => $_SESSION["uid"] != ''));
return $this->_wrap(self::STATUS_OK, array("status" => (bool)($_SESSION["uid"] ?? '')));
}
function getUnread(): bool {