Skip to content

Commit

Permalink
Merge pull request #541 from tmannell/7.x-master
Browse files Browse the repository at this point in the history
PHP 7.1 incompatibility error fix for -> Error: Using $this when not in object context in civicrm_form_data()
  • Loading branch information
eileenmcnaughton authored Jan 7, 2019
2 parents 25976fc + 19863d9 commit 5be627f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions civicrm.module
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,10 @@ function civicrm_form_data($edit, &$user, $category, $reset, $doNotProcess = FAL
// do not allow edit for anon users in joomla frontend, CRM-4668, unless u have checksum CRM-5228
$config = CRM_Core_Config::singleton();
if ($config->userFrameworkFrontend) {
CRM_Contact_BAO_Contact_Permission::validateOnlyChecksum($userID, $this);
CRM_Contact_BAO_Contact_Permission::validateOnlyChecksum($userID, $edit);
}
else {
CRM_Contact_BAO_Contact_Permission::validateChecksumContact($userID, $this);
CRM_Contact_BAO_Contact_Permission::validateChecksumContact($userID, $edit);
}
}
$ctype = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $userID, 'contact_type');
Expand Down

0 comments on commit 5be627f

Please sign in to comment.