fix getting root entry when not provided by the share provider

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2016-11-17 16:31:31 +01:00
parent 2f03fcab4a
commit b85459964c
No known key found for this signature in database
GPG Key ID: 425003AC385454C5
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
private function getSourceRootInfo() {
if (is_null($this->sourceRootInfo)) {
if (is_null($this->superShare->getNodeCacheEntry())) {
$this->sourceRootInfo = $this->storage->getCache()->get($this->rootPath);
$this->sourceRootInfo = $this->getWrapperStorage()->getCache()->get($this->rootPath);
} else {
$this->sourceRootInfo = $this->superShare->getNodeCacheEntry();
}