aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-09-18 14:46:11 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-09-24 14:02:02 +0200
commit07d43df71382d95839dd4335338d34fd6827b6b1 (patch)
tree9470a3259d9e4bd78cd3f2d7edb99cdb4ce39a9f /lib
parenta6cc810349a6827b2828830a4e80e50eb021a74f (diff)
downloadnextcloud-server-07d43df71382d95839dd4335338d34fd6827b6b1.tar.gz
nextcloud-server-07d43df71382d95839dd4335338d34fd6827b6b1.zip
only add a new row if it isn't a unique share, otherwise update the existing row
Diffstat (limited to 'lib')
-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`)'