Skip to content

Commit 7b7e63c

Browse files
authored
Merge pull request #8389 from ALTITUDE-DEV-FR/patch-1
Fix bug 4.4.4 `spark serve` not working when using Session in Routes.php
2 parents c85b65c + 6dda636 commit 7b7e63c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Session/Session.php

+1-1
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 ($_SESSION === []) {
499+
if (! isset($_SESSION) || $_SESSION === []) {
500500
return $key === null ? [] : null;
501501
}
502502

0 commit comments

Comments
 (0)