Skip to content

Commit

Permalink
Merge pull request #43390 from nextcloud/backport/43131/stable27
Browse files Browse the repository at this point in the history
[stable27] fix(files): Don't attempt to format a partial cache entry
  • Loading branch information
solracsf authored Feb 9, 2024
2 parents 59caee0 + d4e01fb commit ef78661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Cache/Wrapper/CacheWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function formatCacheEntry($entry) {
*/
public function get($file) {
$result = $this->getCache()->get($file);
if ($result) {
if ($result instanceof ICacheEntry) {
$result = $this->formatCacheEntry($result);
}
return $result;
Expand Down

0 comments on commit ef78661

Please sign in to comment.