From f3bbdb1116a657ff0c5320a6f2b36654a3a05d0c Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 24 Feb 2023 10:50:14 +1300 Subject: [PATCH] Php8.x compatibility - do not try to count NULL --- templates/CRM/Form/body.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Form/body.tpl b/templates/CRM/Form/body.tpl index 4f8e4667bf..20b8b57629 100644 --- a/templates/CRM/Form/body.tpl +++ b/templates/CRM/Form/body.tpl @@ -15,7 +15,7 @@
{$form.hidden}
{/if} -{if ($snippet !== 'json') and !$suppressForm and count($form.errors) gt 0} +{if ($snippet !== 'json') and !$suppressForm and $form.errors !== NULL && count($form.errors) gt 0}
{ts}Please correct the following errors in the form fields below:{/ts} -- 2.25.1