aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_groups.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acp/acp_groups.php')
-rw-r--r--phpBB/includes/acp/acp_groups.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_groups.php b/phpBB/includes/acp/acp_groups.php
index 93ab4eedaa..236758b277 100644
--- a/phpBB/includes/acp/acp_groups.php
+++ b/phpBB/includes/acp/acp_groups.php
@@ -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')