CRM-15492 / 4.5 branch / Notice: Undefined index: include in CRM_Mailing_Form_Group...
authorKen West <ken.west@internode.on.net>
Sun, 19 Oct 2014 23:56:53 +0000 (10:56 +1100)
committerKen West <ken.west@internode.on.net>
Sun, 19 Oct 2014 23:56:53 +0000 (10:56 +1100)
CRM/Mailing/Form/Group.php

index 4fd9df591065d71ddf80d82eeecf5386853d0990..51f013d4323314e36662c9a8a55d87868a18c17f 100644 (file)
@@ -143,7 +143,7 @@ class CRM_Mailing_Form_Group extends CRM_Contact_Form_Task {
         $mailingGroups[$entityTable][$dao->group_type][] = $dao->entity_id;
       }
 
-      $defaults['includeGroups'] = $mailingGroups['civicrm_group']['include'];
+      $defaults['includeGroups'] = CRM_Utils_Array::value('include', $mailingGroups['civicrm_group']);
       $defaults['excludeGroups'] = CRM_Utils_Array::value('exclude', $mailingGroups['civicrm_group']);
 
       if (!empty($mailingGroups['civicrm_mailing'])) {