CRM_Test_Fix 4.5alpha1
authorCiviCRM <info@civicrm.org>
Mon, 2 Jun 2014 14:04:40 +0000 (19:34 +0530)
committerCiviCRM <info@civicrm.org>
Mon, 2 Jun 2014 14:04:40 +0000 (19:34 +0530)
CRM/Member/BAO/Membership.php

index dc08ed374ae5321113e36a042bd3b7de0b292d3e..a91081a1301ccc57f7618f435e331e3d24feb903 100644 (file)
@@ -2259,13 +2259,17 @@ INNER JOIN  civicrm_contact contact ON ( contact.id = membership.contact_id AND
       }
     }
 
+    $membershipSource = NULL;
     if (!empty($form->_params['membership_source'])) {
       $membershipSource = $form->_params['membership_source'];
     }
     elseif (isset($form->_values['title']) && !empty($form->_values['title'])) {
       $membershipSource = ts('Online Contribution:') . ' ' . $form->_values['title'];
     }
-    $isPayLater = CRM_Utils_Array::value('is_pay_later', $form->_params);
+    $isPayLater = NULL;
+    if(isset($form->_params)) {
+      $isPayLater = CRM_Utils_Array::value('is_pay_later', $form->_params);
+    }
     $campaignId = NULL;
     if (isset($form->_values) && is_array($form->_values) && !empty($form->_values)) {
       $campaignId = CRM_Utils_Array::value('campaign_id', $form->_params);