diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-01-25 19:30:38 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-02-06 12:53:13 +0000 |
commit | 700a5d7ba2569e7bf4d54ebde56537fca045fa1d (patch) | |
tree | d532ebb65c80b30d3fcbc6a4a834f15b7d7d3fcd /lib/private/Files/Cache/Wrapper | |
parent | de19878cdf8976e783cdb8d0cb593c437ac4b404 (diff) | |
download | nextcloud-server-700a5d7ba2569e7bf4d54ebde56537fca045fa1d.tar.gz nextcloud-server-700a5d7ba2569e7bf4d54ebde56537fca045fa1d.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/Wrapper')
-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; |