Merge pull request #13706 from MrPetovan/bug/fatal-errors
Don't assume $_SESSION is set in Session\Type\AbstractSession
This commit is contained in:
commit
b1e6a53692
|
@ -79,7 +79,7 @@ class AbstractSession implements IHandleSessions
|
|||
*/
|
||||
public function setMultiple(array $values)
|
||||
{
|
||||
$_SESSION = $values + $_SESSION;
|
||||
$_SESSION = $values + ($_SESSION ?? []);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user