From 7e5303bec7d28315cae1adb3de5ce6cbaf501897 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 25 Jan 2024 19:30:38 +0100 Subject: fix(files): Don't attempt to format a partial cache entry Signed-off-by: Christoph Wurst --- lib/private/Files/Cache/Wrapper/CacheWrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Files/Cache') diff --git a/lib/private/Files/Cache/Wrapper/CacheWrapper.php b/lib/private/Files/Cache/Wrapper/CacheWrapper.php index 39a78f31343..59da272787e 100644 --- a/lib/private/Files/Cache/Wrapper/CacheWrapper.php +++ b/lib/private/Files/Cache/Wrapper/CacheWrapper.php @@ -91,7 +91,7 @@ class CacheWrapper extends Cache { */ public function get($file) { $result = $this->getCache()->get($file); - if ($result) { + if ($result instanceof ICacheEntry) { $result = $this->formatCacheEntry($result); } return $result; -- cgit v1.2.3