From: monishdeb Date: Wed, 29 Oct 2014 11:01:47 +0000 (+0530) Subject: Minor change X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=22825dfcd05c7e51f8b37a89228e2c3ed6382feb;p=civicrm-core.git Minor change --- 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; } } }