From d184a580705e52ea14afe378ba8841e637494f03 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 7 Mar 2013 17:54:50 +0530 Subject: [PATCH] --notice fixes for CRM-12018 --- CRM/Contribute/Form/Contribution/Main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1