--notice fixes for CRM-12018
authorPradeep Nayak <pradeep@pradeep.(none)>
Thu, 7 Mar 2013 12:24:50 +0000 (17:54 +0530)
committerPradeep Nayak <pradeep@pradeep.(none)>
Thu, 7 Mar 2013 12:24:50 +0000 (17:54 +0530)
CRM/Contribute/Form/Contribution/Main.php

index 1e6b87d440520732effb22697a6473eef16b7284..c92877cb61a36f12c515166e3560d1f7384cea27 100644 (file)
@@ -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;