nake sure ti create new db entry when user renames a group share

This commit is contained in:
Bjoern Schiessle 2014-06-03 16:56:04 +02:00 committed by Robin Appelman
parent ea07f0a18e
commit ad5d8d7980

View file

@ -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 (?,?,?,?,?,?,?,?,?,?,?,?)');