From 3cef995411ae700b0dd43b8a8228e2554a8afbcf Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Thu, 12 Dec 2013 20:29:18 -0800 Subject: [PATCH] Notice fix in CRM_Participant_BAO_Participant::add --- CRM/Event/BAO/Participant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index 14faa1aee4..ce23b03107 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -107,7 +107,7 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant { } // ensure that role ids are encoded as a string - if (is_array($params['role_id'])) { + if (isset($params['role_id']) && is_array($params['role_id'])) { $params['role_id'] = implode(CRM_Core_DAO::VALUE_SEPARATOR, $params['role_id']); } -- 2.25.1