Skip to content

Commit

Permalink
Merge pull request #19447 from mattwire/phpnotice
Browse files Browse the repository at this point in the history
Fix PHP notice if membershipBlock is not defined
  • Loading branch information
eileenmcnaughton authored Jan 26, 2021
2 parents 71c2571 + 21fc9eb commit 971d81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/Contribution/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ public function submit($params) {
$this->assign('pay_later_receipt', CRM_Utils_Array::value('pay_later_receipt', $this->_values));
}

if ($this->_membershipBlock['is_separate_payment'] && !empty($params['separate_amount'])) {
if ($this->_membershipBlock && $this->_membershipBlock['is_separate_payment'] && !empty($params['separate_amount'])) {
$this->set('amount', $params['separate_amount']);
}
else {
Expand Down

0 comments on commit 971d81f

Please sign in to comment.