Überarbeitung landing und index

This commit is contained in:
2026-07-20 19:36:22 +02:00
parent c9ab82e97a
commit 9871401fbc
4 changed files with 194 additions and 58 deletions
+11
View File
@@ -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,