mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Fix file sharing : Don't give a unused param to execute
This commit is contained in:
parent
16f376bca1
commit
b2fdfb0c49
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class OC_Share {
|
|||
foreach ($uid_shared_with as $uid) {
|
||||
// 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));
|
||||
$resultCheckSource = $checkSource->execute(array($source, $uid))->fetchAll();
|
||||
$resultCheckSource = $checkSource->execute(array($source))->fetchAll();
|
||||
// TODO Check if the source is inside a folder
|
||||
if (count($resultCheckSource) > 0 && !isset($gid)) {
|
||||
throw new Exception("This item is already shared with ".$uid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue