From dbd48d4e5b57d44dc39bc6b6af6fa7b503d8f2d5 Mon Sep 17 00:00:00 2001 From: kurund Date: Wed, 23 Oct 2013 18:49:40 +0530 Subject: [PATCH] notice fixes as mentioned in CRM-13635 ---------------------------------------- * CRM-13635: Notices when saving back-office event registrations http://issues.civicrm.org/jira/browse/CRM-13635 --- CRM/Event/Form/Participant.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index f2488d5a98..c66155c162 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1456,6 +1456,9 @@ loadCampaign( {$this->_eID}, {$eventCampaigns} ); $contributionParams['is_pay_later'] = 1; } if ($this->_single) { + if (empty($ids)) { + $ids = array(); + } $contributions[] = CRM_Contribute_BAO_Contribution::create($contributionParams, $ids); } else { @@ -1467,7 +1470,7 @@ loadCampaign( {$this->_eID}, {$eventCampaigns} ); } //insert payment record for this participation - if (!$ids['contribution']) { + if (empty($ids['contribution'])) { foreach ($this->_contactIds as $num => $contactID) { $ppDAO = new CRM_Event_DAO_ParticipantPayment(); $ppDAO->participant_id = $participants[$num]->id; -- 2.25.1