check for 0-tag menu

This commit is contained in:
Evan Prodromou 2011-04-05 18:29:09 -04:00
parent fd803ea9ce
commit f2a9c9c26d
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ class TagSubPlugin extends Plugin
$tags = TagSub::forProfile($user->getProfile());
if (!empty($tags)) {
if (!empty($tags) && count($tags) > 0) {
$tagSubMenu = new TagSubMenu($menu->out, $user, $tags);
$menu->submenu(_m('Tags'), $tagSubMenu);
}