Skip to content
Snippets Groups Projects
Commit 2ac00b37 authored by Brice Maron's avatar Brice Maron
Browse files

Fix file sharing : Don't give a unused param to execute

parent ebd36d56
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ class OC_Share { ...@@ -60,7 +60,7 @@ class OC_Share {
foreach ($uid_shared_with as $uid) { foreach ($uid_shared_with as $uid) {
// Check if this item is already shared with the user // Check if this item is already shared with the user
$checkSource = OC_DB::prepare("SELECT source FROM *PREFIX*sharing WHERE source = ? AND uid_shared_with ".self::getUsersAndGroups($uid)); $checkSource = OC_DB::prepare("SELECT source FROM *PREFIX*sharing WHERE source = ? AND uid_shared_with ".self::getUsersAndGroups($uid));
$resultCheckSource = $checkSource->execute(array($source, $uid))->fetchAll(); $resultCheckSource = $checkSource->execute(array($source))->fetchAll();
// TODO Check if the source is inside a folder // TODO Check if the source is inside a folder
if (count($resultCheckSource) > 0 && !isset($gid)) { if (count($resultCheckSource) > 0 && !isset($gid)) {
throw new Exception("This item is already shared with ".$uid); throw new Exception("This item is already shared with ".$uid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment