]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check for 0-tag menu
authorEvan Prodromou <evan@status.net>
Tue, 5 Apr 2011 22:29:09 +0000 (18:29 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 5 Apr 2011 22:29:09 +0000 (18:29 -0400)
plugins/TagSub/TagSubPlugin.php

index 8fbb1133627856bafee58a3108dde4f4870d3578..a9b24b0b5941d20ec0882699a38c2efc9545b033 100644 (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);
         }