Skip to content

Commit

Permalink
Minor code tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Nov 21, 2017
1 parent 8bbe813 commit 8a94f35
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CRM/Price/BAO/LineItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,10 +755,7 @@ public static function changeFeeSelections(
}
}

$trxnId = array();
if (!empty($trxn->id)) {
$trxnId['id'] = $trxn->id;
}
$trxnId = !empty($trxn->id) ? array('id' => $trxn->id) : array();
$lineItemObj->addFinancialItemsOnLineItemsChange($requiredChanges['line_items_to_add'], $entityID, $entityTable, $contributionId, $trxnId);

// update participant fee_amount column
Expand Down

0 comments on commit 8a94f35

Please sign in to comment.