Reverse variable check to fix notice
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 17 Nov 2023 03:19:04 +0000 (16:19 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 17 Nov 2023 03:19:04 +0000 (16:19 +1300)
templates/CRM/Contribute/Form/Contribution/Confirm.tpl

index 5d8492e35d52730a026d64cd98212b07a261a4ad..751649284a5e5d76ab8c3ac08e27c7754abdc950 100644 (file)
@@ -33,7 +33,7 @@
       </div>
 
       <div class="display-block">
-        {if $lineItem and $isDisplayLineItems}
+        {if $isDisplayLineItems && $lineItem}
           {if !$amount}{assign var="amount" value=0}{/if}
           {assign var="totalAmount" value=$amount}
           {include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}