diff options
author | Rodney Stromlund <[email protected]> | 2023-03-31 20:26:36 -0500 |
---|---|---|
committer | Rodney Stromlund <[email protected]> | 2023-03-31 20:26:36 -0500 |
commit | 80bd26b3b10c6aef37054948db2701fdbd9985e4 (patch) | |
tree | 8389f2c7f5b835ff73469438d68bf535e695870a | |
parent | 7795c415ab50bbf6af46e615bb74a6c6d5e41d0b (diff) |
isLoggedIn adds a message to the system log when it returns false, fix for php8+, removed empty test for bool conversion.
-rwxr-xr-x | classes/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php index bee1ff509..255de52d4 100755 --- a/classes/api.php +++ b/classes/api.php @@ -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 { |