Merge pull request #13706 from MrPetovan/bug/fatal-errors

Don't assume $_SESSION is set in Session\Type\AbstractSession
This commit is contained in:
Michael Vogel 2023-12-09 07:10:39 +01:00 committed by GitHub
commit b1e6a53692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ class AbstractSession implements IHandleSessions
*/ */
public function setMultiple(array $values) public function setMultiple(array $values)
{ {
$_SESSION = $values + $_SESSION; $_SESSION = $values + ($_SESSION ?? []);
} }
/** /**