diff options
Diffstat (limited to 'apps/files_sharing/ajax/share.php')
-rw-r--r-- | apps/files_sharing/ajax/share.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php index 0de899a0e1d..10a235e4323 100644 --- a/apps/files_sharing/ajax/share.php +++ b/apps/files_sharing/ajax/share.php @@ -8,9 +8,7 @@ $sources = explode(";", $_POST['sources']); $uid_shared_with = $_POST['uid_shared_with']; $permissions = $_POST['permissions']; foreach ($sources as $source) { - foreach ($uid_shared_with as $uid) { - new OC_Share($source, $uid, $permissions); - } + new OC_Share($source, $uid_shared_with, $permissions); } ?>
\ No newline at end of file |