From: Eileen McNaughton Date: Fri, 22 Oct 2021 03:27:40 +0000 (+1300) Subject: Remove unnecessary pass-by-reference X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bc6779fe74cf60e0d2d971cee404cb9bf1b8da31;p=civicrm-core.git Remove unnecessary pass-by-reference --- diff --git a/CRM/Mailing/Event/BAO/Subscribe.php b/CRM/Mailing/Event/BAO/Subscribe.php index 71baa417fe..b02455d0cb 100644 --- a/CRM/Mailing/Event/BAO/Subscribe.php +++ b/CRM/Mailing/Event/BAO/Subscribe.php @@ -335,7 +335,7 @@ SELECT civicrm_email.id as email_id * during event registration. * @param string $context */ - public static function commonSubscribe(&$groups, &$params, $contactId = NULL, $context = NULL) { + public static function commonSubscribe($groups, $params, $contactId = NULL, $context = NULL) { $contactGroups = CRM_Mailing_Event_BAO_Subscribe::getContactGroups($params['email'], $contactId); $group = []; $success = NULL;