From aa20cd740e199e0f8b2638748ac654b11af6a423 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 14 Aug 2023 10:53:28 +1200 Subject: [PATCH] dev/core#4494 Fix e-notice by removing unused variables --- CRM/Event/Form/Participant.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index c82d7a1c67..2f931a217b 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1350,7 +1350,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment } if (!empty($params['send_receipt'])) { - $result = $this->sendReceipts($params, $contributionParams['total_amount'], $customFields, $participants, $lineItem[0], $line, $value, $additionalParticipantDetails); + $result = $this->sendReceipts($params, $contributionParams['total_amount'], $customFields, $participants, $lineItem[0], $additionalParticipantDetails); } // set the participant id if it is not set @@ -2106,14 +2106,12 @@ INNER JOIN civicrm_price_field_value value ON ( value.id = lineItem.price_field_ * @param array $customFields * @param array $participants * @param $lineItem - * @param $line - * @param $value * @param $additionalParticipantDetails * * @return array * @throws \CRM_Core_Exception */ - protected function sendReceipts($params, $total_amount, array $customFields, array $participants, $lineItem, $line, $value, $additionalParticipantDetails): array { + protected function sendReceipts($params, $total_amount, array $customFields, array $participants, $lineItem, $additionalParticipantDetails): array { $sent = []; $notSent = []; $this->assign('module', 'Event Registration'); -- 2.25.1