From 42ed3c6b7ecbbd3f60a100d0f065003b5cd83ff9 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Wed, 17 Aug 2011 00:34:02 +0200
Subject: [PATCH] fix problem with building the IN query

---
 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 a42fed3e763..a46a48bb264 100644
--- a/apps/files_sharing/lib_share.php
+++ b/apps/files_sharing/lib_share.php
@@ -112,7 +112,7 @@ class OC_Share {
 			}
 		} else if (isset($uid)) {
 			// TODO Check if this is necessary, only constructor needs it as IN. It would be better for other queries to just return =$uid
-			$in = "'".$uid."'";
+			$in .= "'".$uid."'";
 			$groups = OC_Group::getUserGroups($uid);
 			foreach ($groups as $group) {
 				$in .= ", '".$uid."@".$group."'";
-- 
GitLab