From 2b69dd8414581e64583d7dbe6af8a25d8fe7a254 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 16 Sep 2021 18:04:59 +1200 Subject: [PATCH] Remove fugly bit --- CRM/Contribute/Form/UpdateBilling.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/UpdateBilling.php b/CRM/Contribute/Form/UpdateBilling.php index 9a1b1a939464..2bf85bc8d3dc 100644 --- a/CRM/Contribute/Form/UpdateBilling.php +++ b/CRM/Contribute/Form/UpdateBilling.php @@ -211,7 +211,7 @@ public function postProcess() { } elseif ($updateSubscription) { $ctype = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_subscriptionDetails->contact_id, 'contact_type'); - $contact = &CRM_Contact_BAO_Contact::createProfileContact($params, + CRM_Contact_BAO_Contact::createProfileContact($params, $fields, $this->_subscriptionDetails->contact_id, NULL, @@ -227,7 +227,7 @@ public function postProcess() { $tplParams['membership_status'] = CRM_Core_DAO::getFieldValue('CRM_Member_DAO_MembershipStatus', $tplParams['status_id']); $tplParams['membershipType'] = CRM_Core_DAO::getFieldValue('CRM_Member_DAO_MembershipType', $tplParams['membership_type_id']); $status = ts('Billing details for your automatically renewed %1 membership have been updated.', - array(1 => $tplParams['membershipType']) + [1 => $tplParams['membershipType']] ); $msgTitle = ts('Details Updated'); $msgType = 'success';