[Pkg-owncloud-commits] [owncloud] 17/75: Fix file sharing : Don't give a unused param to execute

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:08:30 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v3.0.1
in repository owncloud.

commit b2fdfb0c49e83199c172af8792bc3dc838459592
Author: Brice Maron <brice at bmaron.net>
Date:   Mon Oct 17 23:39:23 2011 +0200

    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 978847f..0f1ddfe 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list