$subtypes = CRM_Contact_BAO_ContactType::subTypePairs(NULL, TRUE, '');
$this->assign('contact_type', $main['contact_type']);
- if (isset($main['contact_sub_type'])) {
+ if (!empty($main['contact_sub_type'])) {
$this->assign('main_contact_subtype',
CRM_Utils_Array::value('contact_sub_type', $subtypes[$main['contact_sub_type'][0]])
);
}
- if (isset($other['contact_sub_type'])) {
+ if (!empty($other['contact_sub_type'])) {
$this->assign('other_contact_subtype',
CRM_Utils_Array::value('contact_sub_type', $subtypes[$other['contact_sub_type'][0]])
);