Haerte Verwaltungsflows und Zahlungsabgleich
This commit is contained in:
+5
-3
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user