From 04f72de867a2056fa29a0d5680b34f9a3af35f5b Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 22 Jan 2016 18:35:20 -0800 Subject: [PATCH] CRM-17860 - CRM_Member_Import_Parser_MembershipTest - Fix for PHP 5.4 --- CRM/Member/Import/Parser/Membership.php | 4 ++-- CRM/Utils/Array.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Member/Import/Parser/Membership.php b/CRM/Member/Import/Parser/Membership.php index ee60221155..5bef01d667 100644 --- a/CRM/Member/Import/Parser/Membership.php +++ b/CRM/Member/Import/Parser/Membership.php @@ -162,7 +162,7 @@ class CRM_Member_Import_Parser_Membership extends CRM_Member_Import_Parser { return CRM_Import_Parser::ERROR; } - $params = &$this->getActiveFieldParams(); + $params = $this->getActiveFieldParams(); $errorMessage = NULL; //To check whether start date or join date is provided @@ -269,7 +269,7 @@ class CRM_Member_Import_Parser_Membership extends CRM_Member_Import_Parser { return $response; } - $params = &$this->getActiveFieldParams(); + $params = $this->getActiveFieldParams(); //assign join date equal to start date if join date is not provided if (empty($params['join_date']) && !empty($params['membership_start_date'])) { diff --git a/CRM/Utils/Array.php b/CRM/Utils/Array.php index 4ace0a2086..17fc32963b 100644 --- a/CRM/Utils/Array.php +++ b/CRM/Utils/Array.php @@ -106,7 +106,7 @@ class CRM_Utils_Array { * @return int|string|null * Returns the key, which could be an int or a string, or NULL on failure. */ - public static function key($value, &$list) { + public static function key($value, $list) { if (is_array($list)) { $key = array_search($value, $list); -- 2.25.1