Skip to content

Commit

Permalink
Merge pull request #43391 from nextcloud/backport/43131/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(files): Don't attempt to format a partial cache entry
  • Loading branch information
icewind1991 authored Feb 9, 2024
2 parents ad46f58 + 700a5d7 commit 57ee788
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 57ee788

Please sign in to comment.