diff options
| author | winter Sparkles | 2026-08-09 02:38:44 +0100 |
|---|---|---|
| committer | winter Sparkles | 2026-08-09 02:38:44 +0100 |
| commit | c8998ccdff070d7c73a634e031a041260b87c3b1 (patch) | |
| tree | 128bfaaa042df1db22eb5f4733950aef4808dba7 | |
| parent | 3354d45762bbe0db33e3d26d8997e6f6624f24d7 (diff) | |
tiny fix to stop it thinking it's logged in when it's not
| -rw-r--r-- | Psso/Session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Psso/Session.php b/Psso/Session.php index 35a6228..34dd94a 100644 --- a/Psso/Session.php +++ b/Psso/Session.php @@ -80,7 +80,7 @@ class Session { public function getColumn(string $column): mixed { $stmt = $this->db->prepare("select $column from session where token=?"); $stmt->execute([$this->currentToken()]); - return unserialize($stmt->fetchColumn(0)); + return unserialize($stmt->fetchColumn(0)) ?: null; } public function setIdentity(mixed $identity): void { |
