aboutsummaryrefslogtreecommitdiff
path: root/Psso/Session.php
diff options
context:
space:
mode:
authorwinter Sparkles2026-08-09 02:38:44 +0100
committerwinter Sparkles2026-08-09 02:38:44 +0100
commitc8998ccdff070d7c73a634e031a041260b87c3b1 (patch)
tree128bfaaa042df1db22eb5f4733950aef4808dba7 /Psso/Session.php
parent3354d45762bbe0db33e3d26d8997e6f6624f24d7 (diff)
tiny fix to stop it thinking it's logged in when it's not
Diffstat (limited to 'Psso/Session.php')
-rw-r--r--Psso/Session.php2
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 {