Merge pull request #4329 from davecivicrm/CRM-15376
[civicrm-core.git] / CRM / Utils / DeprecatedUtils.php
index 4ec6275a363a9e75ca8b2c090152e23eb71a5a17..eff034adaf9ef02fb0bf9608421f3829dcd87253 100644 (file)
@@ -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);