diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-03 16:56:04 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-06-06 09:56:01 +0200 |
commit | ad5d8d7980199a7cb08547a3bd46527407749ea6 (patch) | |
tree | 96bd8711cc82efc0f32a2668ebfb6f8dbb769b71 /apps | |
parent | ea07f0a18ee1e5dba06fa7421412cf9465d758a2 (diff) | |
download | nextcloud-server-ad5d8d7980199a7cb08547a3bd46527407749ea6.tar.gz nextcloud-server-ad5d8d7980199a7cb08547a3bd46527407749ea6.zip |
nake sure ti create new db entry when user renames a group share
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/sharedmount.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/sharedmount.php b/apps/files_sharing/lib/sharedmount.php index 79d6991264e..8d0ecbc6789 100644 --- a/apps/files_sharing/lib/sharedmount.php +++ b/apps/files_sharing/lib/sharedmount.php @@ -65,7 +65,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 && $share['unique_name'] === false) { + if ($share['share_type'] === \OCP\Share::SHARE_TYPE_GROUP && empty($share['unique_name'])) { $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 (?,?,?,?,?,?,?,?,?,?,?,?)'); |