<div>{$form.hidden}</div>
{/if}
-{if ($snippet !== 'json') and !$suppressForm and $form.errors !== NULL && count($form.errors) gt 0}
+{if ($snippet !== 'json') and !$suppressForm and $form.errors}
<div class="messages crm-error">
<i class="crm-i fa-exclamation-triangle crm-i-red" aria-hidden="true"></i>
{ts}Please correct the following errors in the form fields below:{/ts}
+--------------------------------------------------------------------+
*}
{* Navigation template for multi-section Wizards *}
-{if count( $category.steps ) > 0}
+{if $category.steps}
<div id="wizard-steps">
<ul class="section-list">
{foreach from=$category.steps item=step}
{foreach from=$qill name=sets key=setKey item=orClauses}
{if $smarty.foreach.sets.total > 2}
{* We have multiple criteria sets, so display AND'd items in each set on the same line. *}
- {if count($orClauses) gt 0}
+ {if $orClauses}
<ul>
<li>
{foreach from=$orClauses name=criteria item=item}