From: Tim Otten Date: Sat, 23 Jan 2016 02:35:20 +0000 (-0800) Subject: CRM-17860 - CRM_Member_Import_Parser_MembershipTest - Fix for PHP 5.4 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=04f72de867a2056fa29a0d5680b34f9a3af35f5b;p=civicrm-core.git CRM-17860 - CRM_Member_Import_Parser_MembershipTest - Fix for PHP 5.4 --- 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);