Skip to content

Commit

Permalink
Minor code cleanup - remove unnecessary ids declaration
Browse files Browse the repository at this point in the history
 is not used  is only used to set ['id'] so this can be simplified
  • Loading branch information
eileenmcnaughton committed Mar 15, 2019
1 parent d7e2643 commit 3c88488
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions CRM/Event/Form/Registration/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1017,21 +1017,14 @@ public static function processContribution(
$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',
Expand Down

0 comments on commit 3c88488

Please sign in to comment.