Remove an unnecessary ampersand
authoreileen <emcnaughton@wikimedia.org>
Tue, 16 Mar 2021 20:28:42 +0000 (09:28 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 16 Mar 2021 20:28:42 +0000 (09:28 +1300)
CRM/Contact/Import/Form/Preview.php
CRM/Contact/Import/Parser/Contact.php

index 77ddd7afa22a1ed5f3a20663920baf8c103c39cf..d25cd4f58eced0cc559949abd431ca8153708aa8 100644 (file)
@@ -423,7 +423,7 @@ class CRM_Contact_Import_Form_Preview extends CRM_Import_Form_Preview {
     );
 
     // add the new contacts to selected groups
-    $contactIds = &$parser->getImportedContacts();
+    $contactIds = $parser->getImportedContacts();
 
     // add the new related contacts to selected groups
     $relatedContactIds = &$parser->getRelatedImportedContacts();
index b35004675b33dc566f62b81028d986ddf5b68d18..75bbb421d3a96e169797708909ddc5fd29909025 100644 (file)
@@ -979,7 +979,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser {
    *
    * @return array
    */
-  public function &getImportedContacts() {
+  public function getImportedContacts() {
     return $this->_newContacts;
   }