From: Hypolite Petovan Date: Sat, 9 Dec 2023 01:54:07 +0000 (-0500) Subject: Don't assume $_SESSION is set in Session\Type\AbstractSession X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7d69d1b40263b0f1c845a29fc4e5817ee2bdc280;p=friendica.git Don't assume $_SESSION is set in Session\Type\AbstractSession - Address https://github.com/friendica/friendica/issues/13699#issuecomment-1845584812 --- 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 ?? []); } /**