mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: Fix crash in files_version about uninitialized property
Fix "Typed property OC\\Files\\Cache\\Cache::$storage must not be accessed before initialization" Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
4ec76cf834
commit
ad9574970a
1 changed files with 9 additions and 0 deletions
|
|
@ -53,6 +53,15 @@ class CacheWrapper extends Cache {
|
|||
}
|
||||
}
|
||||
|
||||
protected function shouldEncrypt(string $targetPath): bool {
|
||||
$cache = $this->getCache();
|
||||
if ($cache instanceof Cache) {
|
||||
return $cache->shouldEncrypt($targetPath);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Make it easy for wrappers to modify every returned cache entry
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue