Haerte Verwaltungsflows und Zahlungsabgleich

This commit is contained in:
2026-08-07 12:02:41 +02:00
parent 39f662d541
commit 0f263c3a19
9 changed files with 461 additions and 101 deletions
+5 -3
View File
@@ -39,14 +39,16 @@ function imports_find_participant(PDO $pdo, int $tenantId, string $name): ?array
FROM participants
WHERE tenant_id = ?
AND (LOWER(paypal_name) = LOWER(?) OR LOWER(display_name) = LOWER(?))
LIMIT 1'
ORDER BY id
LIMIT 2'
);
$stmt->execute([$tenantId, $name, $name]);
$row = $stmt->fetch();
$rows = $stmt->fetchAll();
if ($row === false) {
if (count($rows) !== 1) {
return null;
}
$row = $rows[0];
return [
'participant_id' => (int)$row['id'],