diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-06-24 23:12:20 -0400 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-06-27 01:05:36 +0200 |
commit | c41cb192c9e903ac6b4a911b851b848e71a97303 (patch) | |
tree | 0b74fea9cf2d0d0a1db1bfd3baae0561924c96d5 | |
parent | 243faf63349b184eadbeaa795f2aa54692cf9e51 (diff) | |
download | nextcloud-server-c41cb192c9e903ac6b4a911b851b848e71a97303.tar.gz nextcloud-server-c41cb192c9e903ac6b4a911b851b848e71a97303.zip |
Fix which line needs '' wrapped around the array values
-rw-r--r-- | lib/public/share.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index 469b91b9f12..a00b35fef46 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -397,10 +397,10 @@ class Share { if (isset($shareType) && isset($shareWith)) { // Include all user and group items if ($shareType == self::$shareTypeUserAndGroups) { - $where .= " AND share_type IN ('".self::SHARE_TYPE_USER."','".self::SHARE_TYPE_GROUP."','".self::$shareTypeGroupUserUnique."')"; + $where .= " AND share_type IN (".self::SHARE_TYPE_USER.",".self::SHARE_TYPE_GROUP.",".self::$shareTypeGroupUserUnique.")"; $groups = \OC_Group::getUserGroups($shareWith); $userAndGroups = array_merge(array($shareWith), $groups); - $where .= " AND share_with IN ('".implode(",", $userAndGroups).")"; + $where .= " AND share_with IN ('".implode("','", $userAndGroups)."')"; } else { $where .= " AND share_type = ".$shareType." AND share_with = '".$shareWith."'"; } |