Merge pull request #4981 from totten/master-cbf2
[civicrm-core.git] / CRM / Contribute / BAO / Contribution / Utils.php
index 32cfa6424b66701139672b1200a2b8c560eb6782..1abae585be55f93073b7a1113baa498b6e5e9054 100644 (file)
@@ -189,7 +189,7 @@ class CRM_Contribute_BAO_Contribution_Utils {
     elseif ($form->_contributeMode == 'express') {
       if ($form->_values['is_monetary'] && $form->_amount > 0.0) {
         // determine if express + recurring and direct accordingly
-        if ($paymentParams['is_recur'] == 1) {
+        if (isset($paymentParams['is_recur']) && $paymentParams['is_recur'] == 1) {
           if (is_object($payment)) {
             $result = $payment->createRecurringPayments($paymentParams);
           }