From 6254c1808bfb70de001473955b70baac2a282789 Mon Sep 17 00:00:00 2001 From: Greyson Stalcup <95014899+GreysonStalcup@users.noreply.github.com> Date: Fri, 14 Apr 2023 16:13:39 -0700 Subject: [PATCH] Update BillingBlock.tpl Fixes a bug where @count is an expecting an array to count but may not be given one in every case. --- templates/CRM/Core/BillingBlock.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Core/BillingBlock.tpl b/templates/CRM/Core/BillingBlock.tpl index 520e9bd6b1..0fc789e811 100644 --- a/templates/CRM/Core/BillingBlock.tpl +++ b/templates/CRM/Core/BillingBlock.tpl @@ -9,7 +9,7 @@ *} {crmRegion name="billing-block"}
- {if $paymentFields|@count} + {if $paymentFields}
{$paymentTypeLabel} @@ -48,7 +48,7 @@
{/if} {/if} - {if $billingDetailsFields|@count && $paymentProcessor.payment_processor_type neq 'PayPal_Express'} + {if $billingDetailsFields && $paymentProcessor.payment_processor_type neq 'PayPal_Express'} {if $profileAddressFields && !$ccid} -- 2.25.1