From 3de151521e3f55d2b4853635b51c95ce424b53e8 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 25 Jan 2024 19:30:38 +0100 Subject: [PATCH] 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(-) diff --git a/lib/private/Files/Cache/Wrapper/CacheWrapper.php b/lib/private/Files/Cache/Wrapper/CacheWrapper.php index 6479ea793b000..d1a86489ffc87 100644 --- a/lib/private/Files/Cache/Wrapper/CacheWrapper.php +++ b/lib/private/Files/Cache/Wrapper/CacheWrapper.php @@ -83,7 +83,7 @@ protected function formatCacheEntry($entry) { */ public function get($file) { $result = $this->getCache()->get($file); - if ($result) { + if ($result instanceof ICacheEntry) { $result = $this->formatCacheEntry($result); } return $result;