From 9a5bb08d1074fe76f42df20d40c7b4e4b7261795 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Wed, 18 Mar 2015 14:37:44 -0400 Subject: [PATCH] CRM-16119: PHP 5.3 syntax compatibility fix. --- CRM/Event/Form/ParticipantFeeSelection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Event/Form/ParticipantFeeSelection.php b/CRM/Event/Form/ParticipantFeeSelection.php index a8ebbacccf..49ae0b0753 100644 --- a/CRM/Event/Form/ParticipantFeeSelection.php +++ b/CRM/Event/Form/ParticipantFeeSelection.php @@ -136,7 +136,8 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { else { foreach ($priceFieldId as $key => $value) { if (!empty($value) && ($this->_values['fee'][$value]['html_type'] == 'Radio' || $this->_values['fee'][$value]['html_type'] == 'Select') && !$this->_values['fee'][$value]['is_required']) { - $defaults[$this->_participantId]['price_' . array_keys($this->_values['fee'])[$key]] = 0; + $fee_keys = array_keys($this->_values['fee']); + $defaults[$this->_participantId]['price_' . $fee_keys[$key]] = 0; } } } -- 2.25.1