diff options
| author | Rodney Stromlund <Rodney.Stromlund@wnco.com> | 2023-03-29 08:20:52 -0500 |
|---|---|---|
| committer | Rodney Stromlund <Rodney.Stromlund@wnco.com> | 2023-03-29 08:20:52 -0500 |
| commit | 7795c415ab50bbf6af46e615bb74a6c6d5e41d0b (patch) | |
| tree | b748961d23ca8af76da5065c2c68ee924af56528 | |
| parent | cf656125b9252d0cfc302367192789db10657125 (diff) | |
isLoggedIn adds a message to the system log when it returns false, fix for php8+
| -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 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 { |