mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Initialize $_SESSION to an empty array even in CLI, to prevent spurious warnings later on
This commit is contained in:
parent
3c3e510c2e
commit
9734473b49
1 changed files with 5 additions and 1 deletions
|
|
@ -338,7 +338,11 @@ class Context
|
|||
}
|
||||
|
||||
// start session
|
||||
if (\PHP_SAPI !== 'cli')
|
||||
if (\PHP_SAPI === 'cli')
|
||||
{
|
||||
$_SESSION = [];
|
||||
}
|
||||
else
|
||||
{
|
||||
if (self::$_current_request->getRouteOption('enable_session'))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue