diff options
Diffstat (limited to 'Psso/Session.php')
| -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 { |
