From 85dcfcd27d0359b6228f147a39018faab1cad717 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Mon, 10 Aug 2020 13:31:07 +0100 Subject: [PATCH] Fix PHP notice on contribution page --- CRM/Contribute/Form/ContributionPage/Amount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/ContributionPage/Amount.php b/CRM/Contribute/Form/ContributionPage/Amount.php index 305e9f77f6..8902103539 100644 --- a/CRM/Contribute/Form/ContributionPage/Amount.php +++ b/CRM/Contribute/Form/ContributionPage/Amount.php @@ -366,7 +366,7 @@ class CRM_Contribute_Form_ContributionPage_Amount extends CRM_Contribute_Form_Co } } else { - if ($fields['amount_block_is_active'] && empty($fields['payment_processor'])) { + if (!empty($fields['amount_block_is_active']) && empty($fields['payment_processor'])) { $errors['payment_processor'] = ts('You have listed fixed contribution options or selected a price set, but no payment option has been selected. Please select at least one payment processor and/or enable the pay later option.'); } } -- 2.25.1