Skip to content

Commit

Permalink
Merge pull request #18243 from eileenmcnaughton/static
Browse files Browse the repository at this point in the history
Do not pass by reference for createRelatedMemberships
  • Loading branch information
mattwire authored Aug 24, 2020
2 parents d5729cd + 33933a4 commit 9a6a00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Member/BAO/Membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@ public static function sortName($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'] = [];
Expand Down

0 comments on commit 9a6a00d

Please sign in to comment.