Überarbeitung landing und index
This commit is contained in:
@@ -186,6 +186,17 @@ function ledger_fetch_participant_summaries(PDO $pdo, int $tenantId, array $opti
|
||||
array_push($params, ...$emailNorms);
|
||||
}
|
||||
|
||||
if (array_key_exists('user_ids', $options)) {
|
||||
$userIds = is_array($options['user_ids'])
|
||||
? ledger_normalize_ids($options['user_ids'])
|
||||
: [];
|
||||
if ($userIds === []) {
|
||||
return [];
|
||||
}
|
||||
$where[] = 'p.user_id IN (' . implode(',', array_fill(0, count($userIds), '?')) . ')';
|
||||
array_push($params, ...$userIds);
|
||||
}
|
||||
|
||||
$sql = "
|
||||
SELECT
|
||||
p.id AS participant_id,
|
||||
|
||||
Reference in New Issue
Block a user