From: Eileen McNaughton Date: Sun, 17 Apr 2022 23:29:32 +0000 (+1200) Subject: Fix sql error on acl user X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e06d7947919768b624879fc98e7abb5fb91fa13a;p=civicrm-core.git Fix sql error on acl user --- diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index b84a36269d..96637af02d 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -4375,7 +4375,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';