From: Pradeep Nayak Date: Thu, 7 Mar 2013 12:24:50 +0000 (+0530) Subject: --notice fixes for CRM-12018 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d184a580705e52ea14afe378ba8841e637494f03;p=civicrm-core.git --notice fixes for CRM-12018 --- diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index 1e6b87d440..c92877cb61 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -962,7 +962,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu $fieldId = $memPresent = $membershipLabel = $fieldOption = $proceFieldAmount = NULL; if ($self->_separateMembershipPayment == 0 && $self->_quickConfig) { foreach ($self->_priceSet['fields'] as $fieldKey => $fieldVal) { - if ($fieldVal['name'] == 'membership_amount') { + if ($fieldVal['name'] == 'membership_amount' && CRM_Utils_Array::value('price_' . $fieldId, $fields)) { $fieldId = $fieldVal['id']; $fieldOption = $fields['price_' . $fieldId]; $memPresent = TRUE;