Skip to content
Snippets Groups Projects
Unverified Commit 9a6a00d6 authored by mattwire's avatar mattwire Committed by GitHub
Browse files

Merge pull request #18243 from eileenmcnaughton/static

Do not pass by reference for createRelatedMemberships
parents d5729cdd 33933a49
No related branches found
No related tags found
No related merge requests found
......@@ -1324,7 +1324,7 @@ WHERE civicrm_membership.contact_id = civicrm_contact.id
* @throws \CRM_Core_Exception
* @throws \CiviCRM_API3_Exception
*/
public static function createRelatedMemberships(&$params, &$dao, $reset = FALSE) {
public static function createRelatedMemberships($params, $dao, $reset = FALSE) {
// CRM-4213 check for loops, using static variable to record contacts already processed.
if (!isset(\Civi::$statics[__CLASS__]['related_contacts'])) {
\Civi::$statics[__CLASS__]['related_contacts'] = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment