aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {