From: Dave Greenberg Date: Thu, 26 Feb 2015 00:00:49 +0000 (-0800) Subject: CRM-14678 - includes adding conditional on $contactID not defined and fixes a warning... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f498a273c3a112fbe49aa1fe33711469d6693c6e;p=civicrm-core.git CRM-14678 - includes adding conditional on $contactID not defined and fixes a warning in copyPriceSet due to invalid pass by reference. ---------------------------------------- * CRM-14678: Add "Not you, or want to join/contribute for a different person?" text to contribution pages https://issues.civicrm.org/jira/browse/CRM-14678 --- diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index 218c1eeccf..6ad81b8052 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -410,7 +410,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu $contactID = $this->getContactID(); if ($contactID) { $this->assign('contact_id', $contactID); - $this->assign('display_name', CRM_Contact_BAO_Contact::displayName($contactID)); + $this->assign('display_name', CRM_Contact_BAO_Contact::displayName($contactID)); } if ($this->_onbehalf) { diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index a7d7d6c6ed..9ddc5d8393 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -342,7 +342,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $contactID = $this->getContactID(); if ($contactID) { $this->assign('contact_id', $contactID); - $this->assign('display_name', CRM_Contact_BAO_Contact::displayName($contactID)); + $this->assign('display_name', CRM_Contact_BAO_Contact::displayName($contactID)); } $this->add('hidden', 'scriptFee', NULL);