Skip to content
Snippets Groups Projects
Unverified Commit 6fe426fc authored by JoeMurray's avatar JoeMurray Committed by GitHub
Browse files

Merge pull request #13295 from andrewpthompson/andrewpthompson-dev-core-602

Fix PHP 7 strict warnings CRM_Core_DAO::getContactIDsFromComponent passed by reference
parents 77474fa9 9e7fec13
Branches
Tags
No related merge requests found
......@@ -177,7 +177,7 @@ abstract class CRM_Core_Form_Task extends CRM_Core_Form {
* For example, for cases we need to override this function as the table name is civicrm_case_contact
*/
public function setContactIDs() {
$this->_contactIds = &CRM_Core_DAO::getContactIDsFromComponent($this->_entityIds,
$this->_contactIds = CRM_Core_DAO::getContactIDsFromComponent($this->_entityIds,
$this::$tableName
);
}
......
......@@ -130,7 +130,7 @@ class CRM_Event_Form_Task extends CRM_Core_Form_Task {
* since its used for things like send email
*/
public function setContactIDs() {
$this->_contactIds = &CRM_Core_DAO::getContactIDsFromComponent($this->_participantIds,
$this->_contactIds = CRM_Core_DAO::getContactIDsFromComponent($this->_participantIds,
'civicrm_participant'
);
}
......
......@@ -120,7 +120,7 @@ class CRM_Grant_Form_Task extends CRM_Core_Form_Task {
* since its used for things like send email
*/
public function setContactIDs() {
$this->_contactIds = &CRM_Core_DAO::getContactIDsFromComponent($this->_grantIds,
$this->_contactIds = CRM_Core_DAO::getContactIDsFromComponent($this->_grantIds,
'civicrm_grant'
);
}
......
......@@ -130,7 +130,7 @@ class CRM_Member_Form_Task extends CRM_Core_Form_Task {
* since its used for things like send email
*/
public function setContactIDs() {
$this->_contactIds = &CRM_Core_DAO::getContactIDsFromComponent($this->_memberIds,
$this->_contactIds = CRM_Core_DAO::getContactIDsFromComponent($this->_memberIds,
'civicrm_membership'
);
}
......
......@@ -114,7 +114,7 @@ class CRM_Pledge_Form_Task extends CRM_Core_Form_Task {
* since its used for things like send email
*/
public function setContactIDs() {
$this->_contactIds = &CRM_Core_DAO::getContactIDsFromComponent($this->_pledgeIds,
$this->_contactIds = CRM_Core_DAO::getContactIDsFromComponent($this->_pledgeIds,
'civicrm_pledge'
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment