From: Hypolite Petovan Date: Sat, 24 Nov 2018 13:22:43 +0000 (-0500) Subject: Merge pull request #6197 from annando/hide-short-groups X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6b845b35d3c525a7fdef3443c39ce31dd9a8ada6;hp=f001a830ee4c76c0d1834f3744403078852226e7;p=friendica.git Merge pull request #6197 from annando/hide-short-groups Don't show the group filter where there is only one --- diff --git a/src/Model/Group.php b/src/Model/Group.php index b32b61e103..1640cb87b1 100644 --- a/src/Model/Group.php +++ b/src/Model/Group.php @@ -400,6 +400,11 @@ class Group extends BaseObject ]; } + // Don't show the groups when there is only one + if (count($display_groups) <= 2) { + return ''; + } + $tpl = Renderer::getMarkupTemplate('group_side.tpl'); $o = Renderer::replaceMacros($tpl, [ '$add' => L10n::t('add'),