From 01612c5324e8b2bcf0abfda318fdd6ddb695bf4f Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Wed, 4 May 2022 11:44:19 +0100 Subject: [PATCH] Minor cleanup to Participant confirm --- CRM/Event/Form/Registration/Confirm.php | 2 +- CRM/Event/Form/Registration/ParticipantConfirm.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index 07b457fe79..f07e2597b6 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -418,7 +418,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { elseif ($participantNum) { $participantCount[$participantNum] = 'participant'; } - $totalTaxAmount += CRM_Utils_Array::value('tax_amount', $record, 0); + $totalTaxAmount += $record['tax_amount'] ?? 0; if (!empty($record['is_primary'])) { $taxAmount = &$params[$participantNum]['tax_amount']; } diff --git a/CRM/Event/Form/Registration/ParticipantConfirm.php b/CRM/Event/Form/Registration/ParticipantConfirm.php index 9b296b7e7b..dcfb115ef2 100644 --- a/CRM/Event/Form/Registration/ParticipantConfirm.php +++ b/CRM/Event/Form/Registration/ParticipantConfirm.php @@ -41,7 +41,6 @@ class CRM_Event_Form_Registration_ParticipantConfirm extends CRM_Event_Form_Regi //get the contact and event id and assing to session. $values = []; - $csContactID = NULL; if ($this->_participantId) { $params = ['id' => $this->_participantId]; CRM_Core_DAO::commonRetrieve('CRM_Event_DAO_Participant', $params, $values, -- 2.25.1