mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
related to #1755 prevent warning in related album menu
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user