From 5de295700374f969150f5be6abfe37c76c8a1817 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Noack?= <noack@data-quest.de>
Date: Mon, 6 Jan 2025 08:25:01 +0000
Subject: [PATCH] Resolve #5089 "System kaputt wenn
 CACHE_IS_SESSION_STORAGE=true"

Closes #5089

Merge request studip/studip!3803
---
 lib/session/CacheSessionHandler.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/session/CacheSessionHandler.php b/lib/session/CacheSessionHandler.php
index 6eea688e4b5..0418e47f17f 100644
--- a/lib/session/CacheSessionHandler.php
+++ b/lib/session/CacheSessionHandler.php
@@ -62,7 +62,7 @@ class CacheSessionHandler implements
     public function read(string $id): string|false
     {
         $cache_key = self::CACHE_KEY_PREFIX . '/' . $id;
-        return $this->cache->read($cache_key);
+        return $this->cache->read($cache_key) ?: '';
     }
 
     public function write(string $id, string $data): bool
-- 
GitLab