summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-10 05:53:50 -0700
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-10 05:53:50 -0700
commit526076f2e0972cef621c4a879fb5deed89eab6f6 (patch)
tree246c2f48c07102033fbc0cff634c128921fad6f8 /lib
parent91230efa9613a5d3d3f324b99451427c0b76aa66 (diff)
parentd51a94161ed0f0be430f04bb4df7f9eac7ff6bb0 (diff)
downloadnextcloud-server-526076f2e0972cef621c4a879fb5deed89eab6f6.tar.gz
nextcloud-server-526076f2e0972cef621c4a879fb5deed89eab6f6.zip
Merge pull request #2781 from owncloud/fix-2592
Correct undefined variable in post_shared hook, fixes #2592
Diffstat (limited to 'lib')
-rw-r--r--lib/public/share.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index 8b8a41d47c0..4b337530be8 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -661,6 +661,7 @@ class Share {
}
}
$backend = self::getBackend($itemType);
+ $collectionTypes = false;
// Get filesystem root to add it to the file target and remove from the
// file source, match file_source with the file cache
if ($itemType == 'file' || $itemType == 'folder') {
@@ -1145,7 +1146,7 @@ class Share {
'itemTarget' => $groupItemTarget,
'parent' => $parent,
'shareType' => $shareType,
- 'shareWith' => $uid,
+ 'shareWith' => $shareWith['group'],
'uidOwner' => $uidOwner,
'permissions' => $permissions,
'fileSource' => $fileSource,