Merge pull request #2621 from colemanw/selector
[civicrm-core.git] / api / v3 / ParticipantPayment.php
index f23f627eea887deded855611c61b974f900d2aaa..67fdad9c82eb96057a5957b6706ceed949710730 100644 (file)
@@ -1,9 +1,8 @@
 <?php
-// $Id$
 
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.4                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2013                                |
  +--------------------------------------------------------------------+
@@ -41,7 +40,6 @@
 /**
  * Files required for this package
  */
-require_once 'CRM/Event/BAO/ParticipantPayment.php';
 
 /**
  * Create a Event Participant Payment
@@ -60,7 +58,7 @@ require_once 'CRM/Event/BAO/ParticipantPayment.php';
 function civicrm_api3_participant_payment_create($params) {
 
   $ids = array();
-  if (CRM_Utils_Array::value('id', $params)) {
+  if (!empty($params['id'])) {
     $ids['id'] = $params['id'];
   }
   $participantPayment = CRM_Event_BAO_ParticipantPayment::create($params, $ids);
@@ -73,7 +71,7 @@ function civicrm_api3_participant_payment_create($params) {
 
 /**
  * Adjust Metadata for Create action
- * 
+ *
  * The metadata is used for setting defaults, documentation & validation
  * @param array $params array or parameters determined by getfields
  */