Skip to content

Commit 0ee4e4a

Browse files
Fix bug 4.4.4 spark not working
After upgrading 4.4.3 to 4.4.4 a bug are coming, spark not launching the CI with cmd. php spark server* Error log: Undefined global variable $_SESSION at SYSTEMPATH\Session\Session.php:499 Backtrace: 1 SYSTEMPATH\Session\Session.php:499 CodeIgniter\Debug\Exceptions()->errorHandler(2, 'Undefined global variable $_SESSION', 'C:\\wamp64\\www\\system\\Session\\Session.php', 499) My fix working with no errors and launching correctly CI.
1 parent c85b65c commit 0ee4e4a

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

0 commit comments

Comments
 (0)