summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/SharedMount.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-08-22 12:27:20 +0200
committerRobin Appelman <robin@icewind.nl>2016-08-22 12:27:20 +0200
commit95570d607c4d6b17db6a436f11b4c675ce9a8212 (patch)
tree5e61203135df3abf7d061a830040fb5cb8d2d534 /apps/files_sharing/lib/SharedMount.php
parente316a7ade7c0b397f69d9c151e76e0004142c715 (diff)
downloadnextcloud-server-95570d607c4d6b17db6a436f11b4c675ce9a8212.tar.gz
nextcloud-server-95570d607c4d6b17db6a436f11b4c675ce9a8212.zip
reuse existing root id
Diffstat (limited to 'apps/files_sharing/lib/SharedMount.php')
-rw-r--r--apps/files_sharing/lib/SharedMount.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/SharedMount.php b/apps/files_sharing/lib/SharedMount.php
index d160eb24228..2b562c4b4f1 100644
--- a/apps/files_sharing/lib/SharedMount.php
+++ b/apps/files_sharing/lib/SharedMount.php
@@ -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();
}