isLoggedIn adds a message to the system log when it returns false, fix for php8+, removed empty test for bool conversion.
This commit is contained in:
parent
7795c415ab
commit
80bd26b3b1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue