mirror of
https://github.com/friendica/friendica
synced 2024-11-19 11:03:40 +00:00
Don't show the group filter where there is only one
This commit is contained in:
parent
2b7f57453b
commit
a3a2147def
1 changed files with 5 additions and 0 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue