Skip to content

Commit

Permalink
Merge pull request #13295 from andrewpthompson/andrewpthompson-dev-co…
Browse files Browse the repository at this point in the history
…re-602

Fix PHP 7 strict warnings CRM_Core_DAO::getContactIDsFromComponent passed by reference
  • Loading branch information
JoeMurray authored Dec 17, 2018
2 parents 77474fa + 9e7fec1 commit 6fe426f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CRM/Core/Form/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static function preProcessCommon(&$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
);
}
Expand Down
2 changes: 1 addition & 1 deletion CRM/Event/Form/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static function preProcessCommon(&$form) {
* 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'
);
}
Expand Down
2 changes: 1 addition & 1 deletion CRM/Grant/Form/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static function preProcessCommon(&$form) {
* 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'
);
}
Expand Down
2 changes: 1 addition & 1 deletion CRM/Member/Form/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static function preProcessCommon(&$form) {
* 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'
);
}
Expand Down
2 changes: 1 addition & 1 deletion CRM/Pledge/Form/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static function preProcessCommon(&$form) {
* 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'
);
}
Expand Down

0 comments on commit 6fe426f

Please sign in to comment.