related to #1755 prevent warning in related album menu

This commit is contained in:
Matthieu Leproux
2022-10-17 16:08:44 +02:00
parent 555133294d
commit 5aa3803a68

View File

@@ -11,15 +11,15 @@
{'</ul></li>'|@str_repeat:($ref_level-$cat.LEVEL)}
{/if}
<li>
{if isset($cat.url)}
{if isset($cat.url) and isset($cat.TITLE)}
<a href="{$cat.url}" title="{$cat.TITLE}">{$cat.name}</a>
{else}
{$cat.name}
{/if}
{if $cat.count_images > 0}
{if isset($cat.count_images) and $cat.count_images > 0}
<span class="badge" title="{$cat.count_images|translate_dec:'%d photo':'%d photos'}">{$cat.count_images}</span>
{/if}
{if $cat.count_categories > 0}
{if isset($cat.count_categories) and $cat.count_categories > 0}
<span class="badge badgeCategories" title="{'sub-albums'|translate}">{$cat.count_categories}</span>
{/if}
{assign var='ref_level' value=$cat.LEVEL}