Notice fix in CRM_Participant_BAO_Participant::add
authorDave Greenberg <dave@civicrm.org>
Fri, 13 Dec 2013 04:29:18 +0000 (20:29 -0800)
committerDave Greenberg <dave@civicrm.org>
Fri, 13 Dec 2013 04:29:18 +0000 (20:29 -0800)
CRM/Event/BAO/Participant.php

index 14faa1aee44ad5e7d4005e1024d13b2e61ee0dd8..ce23b0310763767f682b6df73ecdbc08fbef6f9a 100644 (file)
@@ -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']);
     }