Merge pull request #2781 from owncloud/fix-2592

Correct undefined variable in post_shared hook, fixes #2592
This commit is contained in:
Bernhard Posselt 2013-04-10 05:53:50 -07:00
commit 526076f2e0
1 changed files with 2 additions and 1 deletions

View File

@ -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,