CRM-17860 - CRM_Member_Import_Parser_MembershipTest - Fix for PHP 5.4
authorTim Otten <totten@civicrm.org>
Sat, 23 Jan 2016 02:35:20 +0000 (18:35 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 2 Feb 2016 04:56:23 +0000 (21:56 -0700)
CRM/Member/Import/Parser/Membership.php
CRM/Utils/Array.php

index ee60221155e030596d0f250557ad3bfcc427340e..5bef01d667cd0059e40200ab9e22a1f5dd130d03 100644 (file)
@@ -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'])) {
index 4ace0a208681ca3b920098479e5096756eccb4fc..17fc32963be70b71f824b90dcf4b04018c39374a 100644 (file)
@@ -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);