aboutsummaryrefslogtreecommitdiff
path: root/lib/session/CacheSessionHandler.php
diff options
context:
space:
mode:
authorAndré Noack <noack@data-quest.de>2025-01-06 08:25:01 +0000
committerAndré Noack <noack@data-quest.de>2025-01-06 08:25:01 +0000
commit5de295700374f969150f5be6abfe37c76c8a1817 (patch)
tree5fc1bbee56436ed3a82af00927af03cf2e91da2b /lib/session/CacheSessionHandler.php
parent5df75382038b91514ec9e7068a0f8f4b5bdc72b6 (diff)
Resolve #5089 "System kaputt wenn CACHE_IS_SESSION_STORAGE=true"
Closes #5089 Merge request studip/studip!3803
Diffstat (limited to 'lib/session/CacheSessionHandler.php')
-rw-r--r--lib/session/CacheSessionHandler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/session/CacheSessionHandler.php b/lib/session/CacheSessionHandler.php
index 6eea688..0418e47 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