isLoggedIn adds a message to the system log when it returns false, fix for php8+

This commit is contained in:
Rodney Stromlund 2023-03-29 08:20:52 -05:00
parent cf656125b9
commit 7795c415ab
1 changed files with 1 additions and 1 deletions

View File

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