From 4e945d1e9547667ed1cb933fd19418ff4cf635fe Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 18 Apr 2022 11:29:32 +1200 Subject: [PATCH] Fix sql error on acl user --- CRM/Contribute/BAO/Contribution.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 2a937f46e2..9b8b098555 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -4393,7 +4393,7 @@ LIMIT 1;"; $clauses = []; foreach ($whereClauses as $key => $clause) { - $clauses[] = 'b.' . $key . ' ' . implode(' AND b.' . $key, (array) $clause); + $clauses[] = 'b.' . $key . ' ' . implode(' AND b.' . $key . ' ', (array) $clause); } $clauses[] = 'b.contact_id IN (' . $contactIDs . ')'; $clauses[] = 'b.is_test = 0'; -- 2.25.1