From: CiviCRM Date: Wed, 11 Jun 2014 17:13:21 +0000 (+0530) Subject: CRM-14653 notice fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a4e49a482a530308806972c67a7a982a50edd9e1;p=civicrm-core.git CRM-14653 notice fix ---------------------------------------- * CRM-14653: Upgrade Discount Listing page for new enableDisable method https://issues.civicrm.org/jira/browse/CRM-14653 --- diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index baa0440b6f..cf82ce510b 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -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]; } }