From 2e19e486bf4b6c2b1ea57b7edc8f7cd7befb256e Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Fri, 4 Jan 2019 11:25:37 +0000 Subject: [PATCH] dev/core/issues/636 - Check if value is isset rather empty --- CRM/Contact/Form/Edit/Address.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1