CRM-19617 - Fix undefined index notice in CRM_Contact_Form_Contact::checkDuplicateCon...
authorThomas Schüttler <tschuettler@oxfam.de>
Wed, 9 Nov 2016 16:03:01 +0000 (17:03 +0100)
committerThomas Schüttler <tschuettler@oxfam.de>
Wed, 9 Nov 2016 16:03:01 +0000 (17:03 +0100)
CRM/Contact/Form/Contact.php

index d1b72bea36f94a44cec8e6e32de01531689973ad..5c0cf8e01f906066973dfc639314ce51449ef969 100644 (file)
@@ -1164,14 +1164,14 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
         for ($i = 0; $i < count($contactLinks['rows']); $i++) {
           $row .= '  <tr>   ';
           $row .= '    <td class="matching-contacts-name"> ';
-          $row .= $contactLinks['rows'][$i]['display_name'];
+          $row .= CRM_Utils_Array::value('display_name', $contactLinks['rows'][$i]);
           $row .= '    </td>';
           $row .= '    <td class="matching-contacts-email"> ';
-          $row .= $contactLinks['rows'][$i]['primary_email'];
+          $row .= CRM_Utils_Array::value('primary_email', $contactLinks['rows'][$i]);
           $row .= '    </td>';
           $row .= '    <td class="action-items"> ';
-          $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 .= '    </td>';
           $row .= '  </tr>   ';