aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/Wrapper
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2024-01-25 19:30:38 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-02-06 12:53:13 +0000
commit700a5d7ba2569e7bf4d54ebde56537fca045fa1d (patch)
treed532ebb65c80b30d3fcbc6a4a834f15b7d7d3fcd /lib/private/Files/Cache/Wrapper
parentde19878cdf8976e783cdb8d0cb593c437ac4b404 (diff)
downloadnextcloud-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.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;