Fix notice on rendering examples when no contribution pages exist
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 19 Dec 2023 02:23:38 +0000 (15:23 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 19 Dec 2023 02:23:38 +0000 (15:23 +1300)
CRM/Member/WorkflowMessage/Membership/Membership.php

index 1169ea498f5de9d3fc95ae7399e06553e306de74..94395abfb48500becaf066e11c756687479c71b2 100644 (file)
@@ -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