|
@@ 1127-1132 (lines=6) @@
|
| 1124 |
|
$queryArgs[] = self::$shareTypeGroupUserUnique; |
| 1125 |
|
$queryArgs[] = $shareWith; |
| 1126 |
|
$groups = self::getGroupsForUser($shareWith); |
| 1127 |
|
if (!empty($groups)) { |
| 1128 |
|
$placeholders = \join(',', \array_fill(0, \count($groups), '?')); |
| 1129 |
|
$where .= ' OR (`share_type` = ? AND `share_with` IN ('.$placeholders.')) '; |
| 1130 |
|
$queryArgs[] = self::SHARE_TYPE_GROUP; |
| 1131 |
|
$queryArgs = \array_merge($queryArgs, $groups); |
| 1132 |
|
} |
| 1133 |
|
$where .= ')'; |
| 1134 |
|
// Don't include own group shares |
| 1135 |
|
$where .= ' AND `uid_owner` != ?'; |
|
@@ 1174-1178 (lines=5) @@
|
| 1171 |
|
$where .= ' `item_target` = ?'; |
| 1172 |
|
} |
| 1173 |
|
$queryArgs[] = $item; |
| 1174 |
|
if ($includeCollections && $collectionTypes) { |
| 1175 |
|
$placeholders = join(',', array_fill(0, count($collectionTypes), '?')); |
| 1176 |
|
$where .= ' OR `item_type` IN ('.$placeholders.'))'; |
| 1177 |
|
$queryArgs = \array_merge($queryArgs, $collectionTypes); |
| 1178 |
|
} |
| 1179 |
|
} |
| 1180 |
|
|
| 1181 |
|
if ($shareType == self::$shareTypeUserAndGroups && $limit === 1) { |