summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/sharedmount.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-05-27 21:15:25 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-06 09:56:00 +0200
commit24f3f6823eb6c7d293295864799f4d19aeee3783 (patch)
treee7669436ef90e213b1d5e75dde24ea6f920f7fc1 /apps/files_sharing/lib/sharedmount.php
parent5132ae5e69fa0d02c05f789fcda4609f291b638f (diff)
downloadnextcloud-server-24f3f6823eb6c7d293295864799f4d19aeee3783.tar.gz
nextcloud-server-24f3f6823eb6c7d293295864799f4d19aeee3783.zip
get unique_name value directly from the share array
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 873740f4a2d..97d6f464f3d 100644
--- a/apps/files_sharing/lib/sharedmount.php
+++ b/apps/files_sharing/lib/sharedmount.php
@@ -62,7 +62,7 @@ class SharedMount extends Mount implements MoveableMount {
private static function updateFileTarget($newPath, &$share) {
// if the user renames a mount point from a group share we need to create a new db entry
// for the unique name
- if ($share['share_type'] === \OCP\Share::SHARE_TYPE_GROUP && $this->uniqueNameSet() === false) {
+ if ($share['share_type'] === \OCP\Share::SHARE_TYPE_GROUP && $share['unique_name'] === false) {
$query = \OC_DB::prepare('INSERT INTO `*PREFIX*share` (`item_type`, `item_source`, `item_target`,'
.' `share_type`, `share_with`, `uid_owner`, `permissions`, `stime`, `file_source`,'
.' `file_target`, `token`, `parent`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)');