mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-23 11:35:24 +02:00
[ticket/9549] Fix displaying empty groups
PHPBB3-9549
This commit is contained in:
@ -212,13 +212,18 @@ switch ($mode)
|
||||
|
||||
foreach ($groups_ary as $group_id => $group_data)
|
||||
{
|
||||
if (!empty($group_users[$group_id]))
|
||||
if ($group_data['group_teampage'])
|
||||
{
|
||||
$template->assign_block_vars('group', array(
|
||||
'GROUP_NAME' => $group_data['group_name'],
|
||||
'GROUP_COLOR' => $group_data['group_colour'],
|
||||
'U_GROUP' => $group_data['u_group'],
|
||||
));
|
||||
}
|
||||
|
||||
// Display group members.
|
||||
if (!empty($group_users[$group_id]))
|
||||
{
|
||||
foreach ($group_users[$group_id] as $user_id)
|
||||
{
|
||||
if (isset($user_ary[$user_id]))
|
||||
|
Reference in New Issue
Block a user