Fix which line needs '' wrapped around the array values
This commit is contained in:
parent
243faf6334
commit
c41cb192c9
1 changed files with 2 additions and 2 deletions
|
@ -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."'";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue