From df5ad245132f971da80b1ab64eb5cbd175d3d984 Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Tue, 14 Oct 2014 10:32:14 +0530 Subject: [PATCH] Fix for CRM-15420 --- CRM/Dedupe/Finder.php | 2 +- CRM/Utils/DeprecatedUtils.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Dedupe/Finder.php b/CRM/Dedupe/Finder.php index 4e07fd708f..58b8a83af8 100644 --- a/CRM/Dedupe/Finder.php +++ b/CRM/Dedupe/Finder.php @@ -232,7 +232,7 @@ class CRM_Dedupe_Finder { } // handle preferred_communication_method - if (array_key_exists('preferred_communication_method', $fields)) { + if (!empty($fields['preferred_communication_method'])) { $methods = array_intersect($fields['preferred_communication_method'], array('1')); $methods = array_keys($methods); sort($methods); diff --git a/CRM/Utils/DeprecatedUtils.php b/CRM/Utils/DeprecatedUtils.php index 4ec6275a36..eff034adaf 100644 --- a/CRM/Utils/DeprecatedUtils.php +++ b/CRM/Utils/DeprecatedUtils.php @@ -871,7 +871,7 @@ function _civicrm_api3_deprecated_add_formatted_param(&$values, &$params) { return TRUE; } - if (isset($values['preferred_communication_method'])) { + if (!empty($values['preferred_communication_method'])) { $comm = array(); $pcm = array_change_key_case(array_flip(CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', 'preferred_communication_method')), CASE_LOWER); -- 2.25.1