From: eileenmcnaughton Date: Fri, 12 Jun 2015 00:51:00 +0000 (+0000) Subject: enotice fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=99b93cf8a5060d06ce6646cc4f2750363cff2aa3;p=civicrm-core.git enotice fix --- diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index b45551ce20..a68889e287 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -1088,7 +1088,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu * @return int|mixed|null|string */ public static function computeAmount($params, $formValues) { - + $amount = 0; // First clean up the other amount field if present. if (isset($params['amount_other'])) { $params['amount_other'] = CRM_Utils_Rule::cleanMoney($params['amount_other']); @@ -1098,7 +1098,6 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu $amount = $params['amount_other']; } elseif (!empty($params['pledge_amount'])) { - $amount = 0; foreach ($params['pledge_amount'] as $paymentId => $dontCare) { $amount += CRM_Core_DAO::getFieldValue('CRM_Pledge_DAO_PledgePayment', $paymentId, 'scheduled_amount'); }