From f2a9c9c26dfca9ae1635bd114e3be4c58ba325d3 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 5 Apr 2011 18:29:09 -0400 Subject: [PATCH] check for 0-tag menu --- plugins/TagSub/TagSubPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/TagSub/TagSubPlugin.php b/plugins/TagSub/TagSubPlugin.php index 8fbb113362..a9b24b0b59 100644 --- a/plugins/TagSub/TagSubPlugin.php +++ b/plugins/TagSub/TagSubPlugin.php @@ -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); } -- 2.39.5