From 94e0152475b3cf8ada501f656407112484004fee Mon Sep 17 00:00:00 2001 From: Chanun Chirattikanon Date: Mon, 30 Jan 2017 16:49:36 +0000 Subject: [PATCH] Fix against PHP warning; Notice: Array to string conversion --- CRM/Contribute/Form/ContributionBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index 8be7ccfad4..317ead9c0e 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -633,7 +633,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { //remove common fields only if profile is not configured for onbehalf/honor if (!in_array($profileContactType, array('honor', 'onbehalf'))) { - $fields = array_diff_assoc($fields, $this->_fields); + $fields = array_diff_key($fields, $this->_fields); } CRM_Core_BAO_Address::checkContactSharedAddressFields($fields, $contactID); -- 2.25.1