|
@@ 66-71 (lines=6) @@
|
| 63 |
|
} |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
if (!empty($collection_ids)) { |
| 67 |
|
$collection_ids_in = implode(',', $collection_ids); |
| 68 |
|
$query = "SELECT * FROM {$dbprefix}access_collections |
| 69 |
|
WHERE owner_guid = {$user->guid} AND id IN ($collection_ids_in) AND name NOT LIKE 'Group:%'"; |
| 70 |
|
$collections = get_data($query); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
if (!empty($collections)) { |
| 74 |
|
|
|
@@ 89-95 (lines=7) @@
|
| 86 |
|
} |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
if (!empty($group_ids)) { |
| 90 |
|
$group_ids_in = implode(',', $group_ids); |
| 91 |
|
$query = "SELECT * FROM {$dbprefix}groups_entity ge |
| 92 |
|
JOIN {$dbprefix}entity_relationships er ON er.guid_two = ge.guid |
| 93 |
|
WHERE er.guid_one = {$user->guid} AND ge.guid IN ($group_ids_in)"; |
| 94 |
|
$groups = get_data($query); |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
if (!empty($groups)) { |
| 98 |
|
foreach ($groups as $group) { |