From 8a94f35374b14cb8fe905640271398913f08ca4d Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 20 Nov 2017 13:26:32 +1300 Subject: [PATCH] Minor code tidy up --- CRM/Price/BAO/LineItem.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CRM/Price/BAO/LineItem.php b/CRM/Price/BAO/LineItem.php index 152a0cf5bd..8179afbcec 100644 --- a/CRM/Price/BAO/LineItem.php +++ b/CRM/Price/BAO/LineItem.php @@ -755,10 +755,7 @@ WHERE li.contribution_id = %1"; } } - $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 -- 2.25.1