Merge pull request #15745 from seamuslee001/master
[civicrm-core.git] / CRM / Profile / Form.php
index 0013777bee9da61e69f91b779c149d289c819d0d..1695d4490e3a5cfc9e3d6005ef35be7505541699 100644 (file)
@@ -1119,7 +1119,7 @@ class CRM_Profile_Form extends CRM_Core_Form {
       $contactDetails = CRM_Contact_BAO_Contact::getHierContactDetails($this->_id,
         $greetingTypes
       );
-      $details = $contactDetails[0][$this->_id];
+      $details = $contactDetails[$this->_id];
     }
     if (!(!empty($details['addressee_id']) || !empty($details['email_greeting_id']) ||
       CRM_Utils_Array::value('postal_greeting_id', $details)