- $tpl = get_markup_template('group_side.tpl');
- $o = replace_macros($tpl, [
+ // 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, [