diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-01-25 19:30:38 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-01-25 19:30:38 +0100 |
commit | 7e5303bec7d28315cae1adb3de5ce6cbaf501897 (patch) | |
tree | b700a98775d1e70dbfff1d051bdb3b20e0b15100 /lib/private/Files/Cache | |
parent | b71c037246ec5b636b28e03bb5637b70cece4401 (diff) | |
download | nextcloud-server-7e5303bec7d28315cae1adb3de5ce6cbaf501897.tar.gz nextcloud-server-7e5303bec7d28315cae1adb3de5ce6cbaf501897.zip |
fix(files): Don't attempt to format a partial cache entry
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Files/Cache')
-rw-r--r-- | lib/private/Files/Cache/Wrapper/CacheWrapper.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |