From 7d69d1b40263b0f1c845a29fc4e5817ee2bdc280 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 8 Dec 2023 20:54:07 -0500 Subject: [PATCH] Don't assume $_SESSION is set in Session\Type\AbstractSession - Address https://github.com/friendica/friendica/issues/13699#issuecomment-1845584812 --- src/Core/Session/Type/AbstractSession.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Session/Type/AbstractSession.php b/src/Core/Session/Type/AbstractSession.php index 8e990d1176..1993156f7f 100644 --- a/src/Core/Session/Type/AbstractSession.php +++ b/src/Core/Session/Type/AbstractSession.php @@ -79,7 +79,7 @@ class AbstractSession implements IHandleSessions */ public function setMultiple(array $values) { - $_SESSION = $values + $_SESSION; + $_SESSION = $values + ($_SESSION ?? []); } /**