From 5aa3803a68745c43ef3fd684e12a30afa7de63a7 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Mon, 17 Oct 2022 16:08:44 +0200 Subject: [PATCH] related to #1755 prevent warning in related album menu --- themes/default/template/menubar_related_categories.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/default/template/menubar_related_categories.tpl b/themes/default/template/menubar_related_categories.tpl index 1d1e0837e..3ad4d2aae 100644 --- a/themes/default/template/menubar_related_categories.tpl +++ b/themes/default/template/menubar_related_categories.tpl @@ -11,15 +11,15 @@ {''|@str_repeat:($ref_level-$cat.LEVEL)} {/if}
  • - {if isset($cat.url)} + {if isset($cat.url) and isset($cat.TITLE)} {$cat.name} {else} {$cat.name} {/if} - {if $cat.count_images > 0} + {if isset($cat.count_images) and $cat.count_images > 0} {$cat.count_images} {/if} - {if $cat.count_categories > 0} + {if isset($cat.count_categories) and $cat.count_categories > 0} {$cat.count_categories} {/if} {assign var='ref_level' value=$cat.LEVEL}