diff --git a/templates/CRM/Form/body.tpl b/templates/CRM/Form/body.tpl index 20b8b576297a..bdcacf420690 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 $form.errors !== NULL && count($form.errors) gt 0} +{if ($snippet !== 'json') and !$suppressForm and $form.errors}
{ts}Please correct the following errors in the form fields below:{/ts} diff --git a/templates/CRM/common/SectionNav.tpl b/templates/CRM/common/SectionNav.tpl index e99fd0630f87..11eb81152d95 100644 --- a/templates/CRM/common/SectionNav.tpl +++ b/templates/CRM/common/SectionNav.tpl @@ -8,7 +8,7 @@ +--------------------------------------------------------------------+ *} {* Navigation template for multi-section Wizards *} -{if count( $category.steps ) > 0} +{if $category.steps}