summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-02-09 10:25:03 +0100
committerGitHub <noreply@github.com>2024-02-09 10:25:03 +0100
commitef786616ec61565c7a9f61dfcee031b2f84218a6 (patch)
tree371c94da6e60919fbc9bf56b78d0aa51ff2303dd
parent59caee00d0a14bf5bbe245c64d69e48625f0fea4 (diff)
parentd4e01fb0a1049e172132894fb6b6a1eb5b4adf6b (diff)
downloadnextcloud-server-ef786616ec61565c7a9f61dfcee031b2f84218a6.tar.gz
nextcloud-server-ef786616ec61565c7a9f61dfcee031b2f84218a6.zip
Merge pull request #43390 from nextcloud/backport/43131/stable27
[stable27] fix(files): Don't attempt to format a partial cache entry
-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;