use isset() instead of just {if $var}

This commit is contained in:
DeltaLima 2024-03-29 12:56:24 +01:00
parent 86b607cf4e
commit 505a577dba

View file

@ -6,6 +6,6 @@
{$content|tag:the_content}
<ul class="entry-footer">
<a href="{$id|link:comments_link}#comments">{$comments|tag:comments_number} {if $views}(<strong>{$views}</strong> views)</a>{/if}
<a href="{$id|link:comments_link}#comments">{$comments|tag:comments_number} {if isset($views)}(<strong>{$views}</strong> views)</a>{/if}
</ul>
</div>