From e56049f93e29618e43e26125cf08697235f2d182 Mon Sep 17 00:00:00 2001 From: Erik Hommel Date: Wed, 15 Nov 2023 14:42:38 +0100 Subject: [PATCH] fix on review Co-authored-by: demeritcowboy --- CRM/Activity/BAO/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1