From 3c884887c1104f3359e9450923326df0e6e4c689 Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 16 Mar 2019 10:31:50 +1300 Subject: [PATCH] Minor code cleanup - remove unnecessary ids declaration is not used is only used to set ['id'] so this can be simplified --- CRM/Event/Form/Registration/Confirm.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index 8557a30dec..5034b1fb06 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -1017,21 +1017,14 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { $contribParams['is_test'] = 1; } - $contribID = NULL; if (!empty($contribParams['invoice_id'])) { - $contribID = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_Contribution', + $contribParams['id'] = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_Contribution', $contribParams['invoice_id'], 'id', 'invoice_id' ); } - $ids = array(); - if ($contribID) { - $ids['contribution'] = $contribID; - $contribParams['id'] = $contribID; - } - if (CRM_Contribute_BAO_Contribution::checkContributeSettings('deferred_revenue_enabled')) { $eventStartDate = CRM_Utils_Array::value( 'start_date', -- 2.25.1