Commit 5607f484 authored by mattwire's avatar mattwire
Browse files

Fix PHP notices

parent 6e39e67f
...@@ -37,7 +37,8 @@ class CRM_Groupadmin_Form_Edit extends CRM_Core_Form { ...@@ -37,7 +37,8 @@ class CRM_Groupadmin_Form_Edit extends CRM_Core_Form {
'group_id' => $this->groupID, 'group_id' => $this->groupID,
])['values']; ])['values'];
foreach ($groupAdminContacts as $groupAdminContact) { $adminContacts = [];
foreach (($groupAdminContacts ?? []) as $groupAdminContact) {
$adminContacts[$groupAdminContact['contact_id']] = $groupAdminContact['contact.display_name']; $adminContacts[$groupAdminContact['contact_id']] = $groupAdminContact['contact.display_name'];
} }
$this->assign('groupAdminContacts', $adminContacts); $this->assign('groupAdminContacts', $adminContacts);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment