Fix which line needs '' wrapped around the array values

This commit is contained in:
Michael Gapczynski 2012-06-24 23:12:20 -04:00 committed by Bart Visscher
parent 243faf6334
commit c41cb192c9

View file

@ -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."'";
}