only add a new row if it isn't a unique share, otherwise update the existing row

This commit is contained in:
Bjoern Schiessle 2014-09-18 14:46:11 +02:00
parent a6cc810349
commit 07d43df713
1 changed files with 1 additions and 1 deletions

View File

@ -775,7 +775,7 @@ class Share extends \OC\Share\Constants {
}
}
if (!$itemUnshared && isset($groupShare)) {
if (!$itemUnshared && isset($groupShare) && !isset($uniqueGroupShare)) {
$query = \OC_DB::prepare('INSERT INTO `*PREFIX*share`'
.' (`item_type`, `item_source`, `item_target`, `parent`, `share_type`,'
.' `share_with`, `uid_owner`, `permissions`, `stime`, `file_source`, `file_target`)'