From: Evan Prodromou Date: Tue, 5 Apr 2011 22:29:09 +0000 (-0400) Subject: check for 0-tag menu X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f2a9c9c26dfca9ae1635bd114e3be4c58ba325d3;p=quix0rs-gnu-social.git check for 0-tag menu --- 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); }