reuse existing root id

This commit is contained in:
Robin Appelman 2016-08-22 12:27:20 +02:00
parent e316a7ade7
commit 95570d607c
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ class SharedMount extends MountPoint implements MoveableMount {
$query = $builder->select('storage')
->from('filecache')
->where($builder->expr()->eq('fileid', $builder->createNamedParameter($this->getShare()->getNodeId())));
->where($builder->expr()->eq('fileid', $builder->createNamedParameter($this->getStorageRootId())));
return $query->execute()->fetchColumn();
}