1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00
git-svn-id: file:///svn/phpbb/trunk@7246 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2007-03-31 12:35:44 +00:00
parent f6d1fa57b2
commit 3abc3dd331
4 changed files with 49 additions and 6 deletions

View File

@@ -703,11 +703,13 @@ class acp_groups
while ($row = $db->sql_fetchrow($result))
{
$type = ($row['group_type'] == GROUP_SPECIAL) ? 'special' : 'normal';
// used to determine what type a group is
$lookup[$row['group_id']] = $type;
// used for easy access to the data within a group
$cached_group_data[$type][$row['group_id']] = $row;
$cached_group_data[$type][$row['group_id']]['total_members'] = '0';
$cached_group_data[$type][$row['group_id']]['total_members'] = 0;
}
$db->sql_freeresult($result);
@@ -725,6 +727,9 @@ class acp_groups
}
$db->sql_freeresult($result);
// The order is... normal, then special
asort($cached_group_data);
foreach ($cached_group_data as $type => $row_ary)
{
if ($type == 'special')