]> git.mxchange.org Git - friendica.git/commitdiff
Don't assume $_SESSION is set in Session\Type\AbstractSession
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Dec 2023 01:54:07 +0000 (20:54 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Dec 2023 01:54:07 +0000 (20:54 -0500)
- Address https://github.com/friendica/friendica/issues/13699#issuecomment-1845584812

src/Core/Session/Type/AbstractSession.php

index 8e990d117608b7ac579035055d5ff98d5dfed8b7..1993156f7f14bfd4e356c1172458d7c66755946a 100644 (file)
@@ -79,7 +79,7 @@ class AbstractSession implements IHandleSessions
         */
        public function setMultiple(array $values)
        {
-               $_SESSION = $values + $_SESSION;
+               $_SESSION = $values + ($_SESSION ?? []);
        }
 
        /**