From 22825dfcd05c7e51f8b37a89228e2c3ed6382feb Mon Sep 17 00:00:00 2001 From: monishdeb Date: Wed, 29 Oct 2014 16:31:47 +0530 Subject: [PATCH] Minor change --- CRM/Contribute/BAO/Contribution.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 1fa15e87f6..bffeb39cd3 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -3359,12 +3359,11 @@ WHERE eft.financial_trxn_id IN ({$trxnId}, {$baseTrxnId['financialTrxnId']}) if (!$contributionId) { if ($primaryParticipantId = CRM_Core_DAO::getFieldValue('CRM_Event_BAO_Participant', $id, 'registered_by_id')) { - if ($contributionId = CRM_Core_DAO::getFieldValue('CRM_Event_BAO_ParticipantPayment', $primaryParticipantId, 'contribution_id', 'participant_id')) { - $id = $primaryParticipantId; - } - else { - return; - } + $contributionId = CRM_Core_DAO::getFieldValue('CRM_Event_BAO_ParticipantPayment', $primaryParticipantId, 'contribution_id', 'participant_id'); + $id = $primaryParticipantId; + } + if (!$contributionId) { + return; } } } -- 2.25.1