diff options
author | Brice Maron <brice@bmaron.net> | 2011-10-17 23:39:23 +0200 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2011-10-17 23:39:23 +0200 |
commit | 2ac00b378a536b67a85bf5972952663ca432d115 (patch) | |
tree | 93a4bd24431c39138b10fb6d1354e918dc038498 /apps/files_sharing | |
parent | ebd36d56caec3f665f750ac934a533df57074112 (diff) | |
download | nextcloud-server-2ac00b378a536b67a85bf5972952663ca432d115.tar.gz nextcloud-server-2ac00b378a536b67a85bf5972952663ca432d115.zip |
Fix file sharing : Don't give a unused param to execute
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib_share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib_share.php b/apps/files_sharing/lib_share.php index 978847f4a8f..0f1ddfee32f 100644 --- a/apps/files_sharing/lib_share.php +++ b/apps/files_sharing/lib_share.php @@ -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); |