summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/share/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index c98373455d3..6b903c003d3 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -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`)'