From: Eileen McNaughton Date: Tue, 17 Oct 2023 21:34:22 +0000 (+1300) Subject: Move assignment out of if X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=95c191752e66f73237b1fd7d4128eea4f0c09e90;p=civicrm-core.git Move assignment out of if --- diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index 7130487d62..5bcd399611 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -487,10 +487,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form { $this->assign('linkText', $linkText); } - //set pledge block if block id is set - if (!empty($this->_values['pledge_block_id'])) { - $this->assign('pledgeBlock', TRUE); - } + $this->assign('pledgeBlock', !empty($this->_values['pledge_block_id'])); // @todo - move this check to `getMembershipBlock` if (!$this->isFormSupportsNonMembershipContributions() &&