From: Pradeep Dorugade Date: Tue, 16 Apr 2013 12:12:41 +0000 (+0530) Subject: -- notice fixes for CRM-12284 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=79c2709d8aa5100374d3b9d364f27424dac1a182;p=civicrm-core.git -- notice fixes for CRM-12284 --- diff --git a/CRM/Event/Form/EventFees.php b/CRM/Event/Form/EventFees.php index 8fd046edad..c950afc4c6 100644 --- a/CRM/Event/Form/EventFees.php +++ b/CRM/Event/Form/EventFees.php @@ -99,7 +99,7 @@ class CRM_Event_Form_EventFees { } } - if ($form->_discountId) { + if ($form->_discountId && CRM_Utils_Array::value($defaults[$form->_pId]['discount_id'], $discounts)) { $form->assign('discount', $discounts[$defaults[$form->_pId]['discount_id']]); }