From: Eileen McNaughton Date: Tue, 19 Dec 2023 02:23:38 +0000 (+1300) Subject: Fix notice on rendering examples when no contribution pages exist X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9ed6e309819a252e0c5c13123a2aa27133e13315;p=civicrm-core.git Fix notice on rendering examples when no contribution pages exist --- diff --git a/CRM/Member/WorkflowMessage/Membership/Membership.php b/CRM/Member/WorkflowMessage/Membership/Membership.php index 1169ea498f..94395abfb4 100644 --- a/CRM/Member/WorkflowMessage/Membership/Membership.php +++ b/CRM/Member/WorkflowMessage/Membership/Membership.php @@ -41,7 +41,7 @@ class CRM_Member_WorkflowMessage_Membership_Membership extends WorkflowMessageEx foreach ($workflows as $workflow) { foreach ($priceSets as $priceSet) { - if (!$priceSet['contribution_page_id'] && $workflow === 'membership_online_receipt' & count($priceSets) > 1) { + if (empty($priceSet['contribution_page_id']) && $workflow === 'membership_online_receipt' & count($priceSets) > 1) { // Generally the online receipt is used with a contribution page so lets' focus // on those examples for it - unless none exist. It could also be used // on other contributions via the send receipt method so we do want to show it if