isLoggedIn adds a message to the system log when it returns false, fix for php8+
This commit is contained in:
@@ -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" => ($_SESSION["uid"] ?? '') != ''));
|
||||
}
|
||||
|
||||
function getUnread(): bool {
|
||||
|
||||
Reference in New Issue
Block a user