format fixes
authormonishdeb <monish.deb@webaccessglobal.com>
Fri, 8 May 2015 13:01:58 +0000 (18:31 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Fri, 8 May 2015 13:01:58 +0000 (18:31 +0530)
CRM/Contact/BAO/Contact.php

index 3b732cc17982b56c7bef85fcd3481a86cb1aab64..592c316b0ddad4c420c77a274f7593b868848668 100644 (file)
@@ -2006,7 +2006,7 @@ ORDER BY civicrm_email.is_primary DESC";
       //CRM-13596 - add to existing contact types, rather than overwriting
       $data_contact_sub_type_arr = explode(CRM_Core_DAO::VALUE_SEPARATOR, trim($data['contact_sub_type'], CRM_Core_DAO::VALUE_SEPARATOR));
       if (!in_array($params['contact_sub_type_hidden'], $data_contact_sub_type_arr)) {
-        $data['contact_sub_type'] = $data['contact_sub_type'] . implode(CRM_Core_DAO::VALUE_SEPARATOR, (array)$params['contact_sub_type_hidden']) . CRM_Core_DAO::VALUE_SEPARATOR;
+        $data['contact_sub_type'] = $data['contact_sub_type'] . implode(CRM_Core_DAO::VALUE_SEPARATOR, (array) $params['contact_sub_type_hidden']) . CRM_Core_DAO::VALUE_SEPARATOR;
       }
     }
 
@@ -2232,7 +2232,7 @@ ORDER BY civicrm_email.is_primary DESC";
           //CRM-13596 - check for contact_sub_type_hidden first
           if (array_key_exists('contact_sub_type_hidden', $params)) {
             $type = $params['contact_sub_type_hidden'];
-          } 
+          }
           else {
             $type = $data['contact_type'];
             if (!empty($data['contact_sub_type'])) {