use isset() instead of just {if $var}
This commit is contained in:
parent
86b607cf4e
commit
505a577dba
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue