check for 0-tag menu
This commit is contained in:
parent
fd803ea9ce
commit
f2a9c9c26d
@ -247,7 +247,7 @@ class TagSubPlugin extends Plugin
|
|||||||
|
|
||||||
$tags = TagSub::forProfile($user->getProfile());
|
$tags = TagSub::forProfile($user->getProfile());
|
||||||
|
|
||||||
if (!empty($tags)) {
|
if (!empty($tags) && count($tags) > 0) {
|
||||||
$tagSubMenu = new TagSubMenu($menu->out, $user, $tags);
|
$tagSubMenu = new TagSubMenu($menu->out, $user, $tags);
|
||||||
$menu->submenu(_m('Tags'), $tagSubMenu);
|
$menu->submenu(_m('Tags'), $tagSubMenu);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user