Skip to content

Commit 6dda636

Browse files
Update Session.php
bug fix
1 parent 0ee4e4a commit 6dda636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Session/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ public function get(?string $key = null)
496496
return $value;
497497
}
498498

499-
if (empty($_SESSION) || $_SESSION === []) {
499+
if (! isset($_SESSION) || $_SESSION === []) {
500500
return $key === null ? [] : null;
501501
}
502502

0 commit comments

Comments
 (0)