Merge remote-tracking branch 'upstream/4.4' into 4.4-4.5-2014-10-01-19-08-00
[civicrm-core.git] / bin / deprecated / ParticipantProcessor.php
index 24936fe36a956cbd63a4f7898436a202ee5ad1ca..9086e50fb60731fde2e4f04674fadb4ed16d3585 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
 
 require_once '../civicrm.config.php';
 require_once 'CRM/Core/Config.php';
+
+/**
+ * Class CRM_ParticipantProcessor
+ */
 class CRM_ParticipantProcessor {
+  /**
+   *
+   */
   function __construct() {
     $config = CRM_Core_Config::singleton();
 
@@ -107,7 +114,7 @@ LEFT JOIN  civicrm_event event ON ( event.id = participant.event_id )
       foreach ($participantDetails as $participantId => $values) {
         //process the additional participant at the time of
         //primary participant, don't process separately.
-        if (CRM_Utils_Array::value('registered_by_id', $values)) {
+        if (!empty($values['registered_by_id'])) {
           continue;
         }
 
@@ -156,7 +163,7 @@ LEFT JOIN  civicrm_event event ON ( event.id = participant.event_id )
       foreach ($participantDetails as $participantId => $values) {
         //process the additional participant at the time of
         //primary participant, don't process separately.
-        if (CRM_Utils_Array::value('registered_by_id', $values)) {
+        if (!empty($values['registered_by_id'])) {
           continue;
         }