summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodney Stromlund <[email protected]>2023-03-29 08:20:52 -0500
committerRodney Stromlund <[email protected]>2023-03-29 08:20:52 -0500
commit7795c415ab50bbf6af46e615bb74a6c6d5e41d0b (patch)
treeb748961d23ca8af76da5065c2c68ee924af56528
parentcf656125b9252d0cfc302367192789db10657125 (diff)
isLoggedIn adds a message to the system log when it returns false, fix for php8+
-rwxr-xr-xclasses/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php
index b482a70eb..bee1ff509 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" => ($_SESSION["uid"] ?? '') != ''));
}
function getUnread(): bool {