check for 0-tag menu

This commit is contained in:
Evan Prodromou 2011-04-05 18:29:09 -04:00
parent fd803ea9ce
commit f2a9c9c26d

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);
}