fix on review
authorErik Hommel <erik.hommel@civicoop.org>
Wed, 15 Nov 2023 13:42:38 +0000 (14:42 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Nov 2023 13:42:38 +0000 (14:42 +0100)
Co-authored-by: demeritcowboy <demeritcowboy@hotmail.com>
CRM/Activity/BAO/Activity.php

index 4f85b7ae0f5adbc8703161a103851dc1a83f8ebf..75513aaefb8f8e0751ff0ffd4a3f28ed968c17ef 100644 (file)
@@ -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;