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}