|
@@ 1626-1631 (lines=6) @@
|
| 1623 |
|
$queryArgs[] = self::$shareTypeGroupUserUnique; |
| 1624 |
|
$queryArgs[] = $shareWith; |
| 1625 |
|
$groups = self::getGroupsForUser($shareWith); |
| 1626 |
|
if (!empty($groups)) { |
| 1627 |
|
$placeholders = \join(',', \array_fill(0, \count($groups), '?')); |
| 1628 |
|
$where .= ' OR (`share_type` = ? AND `share_with` IN ('.$placeholders.')) '; |
| 1629 |
|
$queryArgs[] = self::SHARE_TYPE_GROUP; |
| 1630 |
|
$queryArgs = \array_merge($queryArgs, $groups); |
| 1631 |
|
} |
| 1632 |
|
$where .= ')'; |
| 1633 |
|
// Don't include own group shares |
| 1634 |
|
$where .= ' AND `uid_owner` != ?'; |
|
@@ 1673-1677 (lines=5) @@
|
| 1670 |
|
$where .= ' `item_target` = ?'; |
| 1671 |
|
} |
| 1672 |
|
$queryArgs[] = $item; |
| 1673 |
|
if ($includeCollections && $collectionTypes) { |
| 1674 |
|
$placeholders = join(',', array_fill(0, count($collectionTypes), '?')); |
| 1675 |
|
$where .= ' OR `item_type` IN ('.$placeholders.'))'; |
| 1676 |
|
$queryArgs = \array_merge($queryArgs, $collectionTypes); |
| 1677 |
|
} |
| 1678 |
|
} |
| 1679 |
|
|
| 1680 |
|
if ($shareType == self::$shareTypeUserAndGroups && $limit === 1) { |