aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2024-01-25 19:30:38 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2024-01-25 19:30:38 +0100
commit7e5303bec7d28315cae1adb3de5ce6cbaf501897 (patch)
treeb700a98775d1e70dbfff1d051bdb3b20e0b15100 /lib/private/Files/Cache
parentb71c037246ec5b636b28e03bb5637b70cece4401 (diff)
downloadnextcloud-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.php2
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;