Participant Test E-Notice compliance
authorEileen <eileen@fuzion.co.nz>
Fri, 3 Jan 2014 03:00:25 +0000 (16:00 +1300)
committerEileen <eileen@fuzion.co.nz>
Fri, 3 Jan 2014 03:00:25 +0000 (16:00 +1300)
CRM/Event/BAO/Participant.php

index ce23b0310763767f682b6df73ecdbc08fbef6f9a..bcb84784125ded700035cff559032067341038d6 100644 (file)
@@ -219,7 +219,7 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant {
     $session = CRM_Core_Session::singleton();
     $id = $session->get('userID');
     if (!$id) {
-      $id = $params['contact_id'];
+      $id = CRM_Utils_Array::value('contact_id', $params);
     }
 
     // add custom field values