From b2fdfb0c49e83199c172af8792bc3dc838459592 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Mon, 17 Oct 2011 23:39:23 +0200 Subject: [PATCH] Fix file sharing : Don't give a unused param to execute --- apps/files_sharing/lib_share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);