mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +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
|
// start session
|
||||||
if (\PHP_SAPI !== 'cli')
|
if (\PHP_SAPI === 'cli')
|
||||||
|
{
|
||||||
|
$_SESSION = [];
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if (self::$_current_request->getRouteOption('enable_session'))
|
if (self::$_current_request->getRouteOption('enable_session'))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue