]> source.dussan.org Git - nextcloud-server.git/commitdiff
get unique_name value directly from the share array
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 27 May 2014 19:15:25 +0000 (21:15 +0200)
committerRobin Appelman <icewind@owncloud.com>
Fri, 6 Jun 2014 07:56:00 +0000 (09:56 +0200)
apps/files_sharing/lib/sharedmount.php

index 873740f4a2d2a7f16b58648616bc3fccda7762b4..97d6f464f3db74fa93538d9ee6e03c68bc68d1c5 100644 (file)
@@ -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 (?,?,?,?,?,?,?,?,?,?,?,?)');