From: CiviCRM Date: Mon, 2 Jun 2014 14:04:40 +0000 (+0530) Subject: CRM_Test_Fix 4.5alpha1 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c352e9fca19f0135e31512646bad01f9a9bffc88;p=civicrm-core.git CRM_Test_Fix 4.5alpha1 --- diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php index dc08ed374a..a91081a130 100644 --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -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);