Skip to content

Commit

Permalink
Merge pull request #8389 from ALTITUDE-DEV-FR/patch-1
Browse files Browse the repository at this point in the history
Fix bug 4.4.4 `spark serve` not working when using Session in Routes.php
  • Loading branch information
samsonasik authored Dec 30, 2023
2 parents c85b65c + 6dda636 commit 7b7e63c
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 ($_SESSION === []) {
if (! isset($_SESSION) || $_SESSION === []) {
return $key === null ? [] : null;
}

Expand Down

0 comments on commit 7b7e63c

Please sign in to comment.