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=4e945d1e9547667ed1cb933fd19418ff4cf635fe;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 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';