]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files): Don't attempt to format a partial cache entry 43390/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 25 Jan 2024 18:30:38 +0000 (19:30 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 6 Feb 2024 12:52:45 +0000 (12:52 +0000)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/Files/Cache/Wrapper/CacheWrapper.php

index 39a78f31343c370f1a044a1c64bbf6ef7022e50f..59da272787e82e7117f44f0180d8eb1b6edaf7be 100644 (file)
@@ -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;