From 10327993d74d17efb7da3c7868b9a9db019bab1a Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Wed, 19 Oct 2022 15:58:34 +0200 Subject: [PATCH] (cp 5aa3803) 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}