- $tpl = get_markup_template('group_side.tpl');
- $o = replace_macros($tpl, [
+ // Don't show the groups on the network page when there is only one
+ if ((count($display_groups) <= 2) && ($each == 'network')) {
+ return '';
+ }
+
+ $tpl = Renderer::getMarkupTemplate('group_side.tpl');
+ $o = Renderer::replaceMacros($tpl, [