From: Erik Hommel Date: Wed, 15 Nov 2023 13:42:38 +0000 (+0100) Subject: fix on review X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e56049f93e29618e43e26125cf08697235f2d182;p=civicrm-core.git fix on review Co-authored-by: demeritcowboy --- diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php index 4f85b7ae0f..75513aaefb 100644 --- a/CRM/Activity/BAO/Activity.php +++ b/CRM/Activity/BAO/Activity.php @@ -1830,7 +1830,7 @@ AND cl.modified_id = c.id $followupParams['activity_type_id'] = $params['followup_activity_type_id']; // Get Subject of Follow-up Activiity, CRM-4491 $followupParams['subject'] = $params['followup_activity_subject'] ?? NULL; - if (!is_array($params['followup_assignee_contact_id'])) { + if (!is_array($params['followup_assignee_contact_id']) && !empty($params['followup_assignee_contact_id'])) { $params['followup_assignee_contact_id'] = explode(",", $params['followup_assignee_contact_id']); } $followupParams['assignee_contact_id'] = $params['followup_assignee_contact_id'] ?? NULL;