Skip to content
Snippets Groups Projects
Unverified Commit 2634ceb3 authored by blizzz's avatar blizzz Committed by GitHub
Browse files

Merge pull request #11862 from nextcloud/bugfix/ensure_cache_it_init

Double check for failed cache with a shared storage
parents 7c8b3c10 1bc388e5
No related branches found
No related tags found
No related merge requests found
......@@ -378,10 +378,12 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
if (!$storage) {
$storage = $this;
}
$sourceRoot = $this->getSourceRootInfo();
if ($this->storage instanceof FailedStorage) {
return new FailedCache();
}
$this->cache = new \OCA\Files_Sharing\Cache($storage, $this->getSourceRootInfo(), $this->superShare);
$this->cache = new \OCA\Files_Sharing\Cache($storage, $sourceRoot, $this->superShare);
return $this->cache;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment