Skip to content

Commit

Permalink
Update Session.php
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
ALTITUDE-DEV-FR authored Dec 30, 2023
1 parent 0ee4e4a commit 6dda636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Session/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public function get(?string $key = null)
return $value;
}

if (empty($_SESSION) || $_SESSION === []) {
if (! isset($_SESSION) || $_SESSION === []) {
return $key === null ? [] : null;
}

Expand Down

0 comments on commit 6dda636

Please sign in to comment.