From 5cda87ee4001b881e9b0e079d83e7336b21969b8 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 25 May 2018 07:07:28 +1000 Subject: [PATCH] dev/core#117 Replace deprecated each in CiviEvent Participant registration --- CRM/Event/Form/Participant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 6f8d661306..bb16370b55 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -910,7 +910,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment } if (!$this->_single && !empty($event_id)) { $duplicateContacts = 0; - while (list($k, $dupeCheckContactId) = each($this->_contactIds)) { + foreach ($this->_contactIds as $k => $dupeCheckContactId) { // Eliminate contacts that have already been assigned to this event. $dupeCheck = new CRM_Event_BAO_Participant(); $dupeCheck->contact_id = $dupeCheckContactId; -- 2.25.1