From: Pradeep Nayak Date: Fri, 4 Jan 2019 11:25:37 +0000 (+0000) Subject: dev/core/issues/636 - Check if value is isset rather empty X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2e19e486bf4b6c2b1ea57b7edc8f7cd7befb256e;p=civicrm-core.git dev/core/issues/636 - Check if value is isset rather empty --- diff --git a/CRM/Contact/Form/Edit/Address.php b/CRM/Contact/Form/Edit/Address.php index 2429d98dca..0e4399f033 100644 --- a/CRM/Contact/Form/Edit/Address.php +++ b/CRM/Contact/Form/Edit/Address.php @@ -413,7 +413,7 @@ class CRM_Contact_Form_Edit_Address { // since we change element name for address custom data, we need to format the setdefault values $addressDefaults = array(); foreach ($defaults as $key => $val) { - if (empty($val)) { + if (!isset($val)) { continue; }