From: Chanun Chirattikanon Date: Mon, 30 Jan 2017 16:49:36 +0000 (+0000) Subject: Fix against PHP warning; Notice: Array to string conversion X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=94e0152475b3cf8ada501f656407112484004fee;p=civicrm-core.git Fix against PHP warning; Notice: Array to string conversion --- 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);