Skip to content
Snippets Groups Projects
Commit 8085562e authored by eileen's avatar eileen
Browse files

Follow on code removal

parent 154de367
Branches
Tags
No related merge requests found
......@@ -333,23 +333,18 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser {
$isAddressCustomField = FALSE;
foreach ($field as $value) {
$break = FALSE;
if (is_array($value)) {
foreach ($value as $name => $testForEmpty) {
if ($addressCustomFieldID = CRM_Core_BAO_CustomField::getKeyID($name)) {
if (CRM_Core_BAO_CustomField::getKeyID($name)) {
$isAddressCustomField = TRUE;
break;
}
if (($testForEmpty === '' || $testForEmpty == NULL)) {
$break = TRUE;
break;
}
}
}
else {
$break = TRUE;
}
}
if (!$isAddressCustomField) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment