From: Thomas Schüttler Date: Wed, 9 Nov 2016 16:03:01 +0000 (+0100) Subject: CRM-19617 - Fix undefined index notice in CRM_Contact_Form_Contact::checkDuplicateCon... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9a00dcb410e2add1413aeec2d9512a30482daa62;p=civicrm-core.git CRM-19617 - Fix undefined index notice in CRM_Contact_Form_Contact::checkDuplicateContacts() --- diff --git a/CRM/Contact/Form/Contact.php b/CRM/Contact/Form/Contact.php index d1b72bea36..5c0cf8e01f 100644 --- a/CRM/Contact/Form/Contact.php +++ b/CRM/Contact/Form/Contact.php @@ -1164,14 +1164,14 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form { for ($i = 0; $i < count($contactLinks['rows']); $i++) { $row .= ' '; $row .= ' '; - $row .= $contactLinks['rows'][$i]['display_name']; + $row .= CRM_Utils_Array::value('display_name', $contactLinks['rows'][$i]); $row .= ' '; $row .= ' '; - $row .= $contactLinks['rows'][$i]['primary_email']; + $row .= CRM_Utils_Array::value('primary_email', $contactLinks['rows'][$i]); $row .= ' '; $row .= ' '; - $row .= $contactLinks['rows'][$i]['view']; - $row .= $contactLinks['rows'][$i]['edit']; + $row .= CRM_Utils_Array::value('view', $contactLinks['rows'][$i]); + $row .= CRM_Utils_Array::value('edit', $contactLinks['rows'][$i]); $row .= CRM_Utils_Array::value('merge', $contactLinks['rows'][$i]); $row .= ' '; $row .= ' ';