aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_groups.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-03-31 12:35:44 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-03-31 12:35:44 +0000
commit3abc3dd3310e5c26eb58312c7f6f505f9de63644 (patch)
tree3344bd74b234983da4f5c789f9c91a4665825d86 /phpBB/includes/acp/acp_groups.php
parentf6d1fa57b269370583dca8bf0f2f3347d00d5e4a (diff)
downloadforums-3abc3dd3310e5c26eb58312c7f6f505f9de63644.tar
forums-3abc3dd3310e5c26eb58312c7f6f505f9de63644.tar.gz
forums-3abc3dd3310e5c26eb58312c7f6f505f9de63644.tar.bz2
forums-3abc3dd3310e5c26eb58312c7f6f505f9de63644.tar.xz
forums-3abc3dd3310e5c26eb58312c7f6f505f9de63644.zip
#5396, #5266, #5147
git-svn-id: file:///svn/phpbb/trunk@7246 89ea8834-ac86-4346-8a33-228a782c2dd0
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')