CRM-14653 notice fix
authorCiviCRM <info@civicrm.org>
Wed, 11 Jun 2014 17:13:21 +0000 (22:43 +0530)
committerCiviCRM <info@civicrm.org>
Wed, 11 Jun 2014 17:13:21 +0000 (22:43 +0530)
----------------------------------------
* CRM-14653: Upgrade Discount Listing page for new enableDisable method
  https://issues.civicrm.org/jira/browse/CRM-14653

CRM/Event/Form/Participant.php

index baa0440b6fd2375d0bcbb844db51e97274aa3b51..cf82ce510b4e3860039085d9b209e8943ac644ac 100644 (file)
@@ -561,7 +561,7 @@ class CRM_Event_Form_Participant extends CRM_Contact_Form_Task {
         $roleID = $submittedRole[0];
       }
       $submittedEvent = $this->getElementValue('event_id');
-      if ($submittedEvent[0]) {
+      if (!empty($submittedEvent[0])) {
         $eventID = $submittedEvent[0];
       }
     }