Commit 0f5f54ee authored by bgm's avatar bgm Committed by Aegir user
Browse files

Fix invalid function call causing fatal error.

parent 35864520
......@@ -62,7 +62,7 @@ class CivicrmMailerHTTPMailer extends \PHPMailer
// The user might not exist.
// Find a matching email in CiviCRM, prioritize primary emails.
if (empty($contact)) {
$dao = CRM_Core_DAO::executeQuery('SELECT contact_id FROM civicrm_email WHERE email = %1 AND contact_id IS NOT NULL ORDER BY is_primary DESC', [
$dao = \CRM_Core_DAO::executeQuery('SELECT contact_id FROM civicrm_email WHERE email = %1 AND contact_id IS NOT NULL ORDER BY is_primary DESC', [
1 => [$recipient, 'String'],
]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment