Don't show the group filter where there is only one
This commit is contained in:
@@ -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');
|
$tpl = Renderer::getMarkupTemplate('group_side.tpl');
|
||||||
$o = Renderer::replaceMacros($tpl, [
|
$o = Renderer::replaceMacros($tpl, [
|
||||||
'$add' => L10n::t('add'),
|
'$add' => L10n::t('add'),
|
||||||
|
|||||||
Reference in New Issue
Block a user