diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2005-08-19 10:52:06 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-08-19 10:52:06 +0000 |
commit | bcc1eb1c0ec6edc8857dac2837a4c9aa0110bbea (patch) | |
tree | 6b20e2e88f27d537f9654a7afc25400ffc116f18 /phpBB/adm/admin_groups.php | |
parent | f71d1a2a00d1050964b1c324aee146e70ae2fcd2 (diff) | |
download | forums-bcc1eb1c0ec6edc8857dac2837a4c9aa0110bbea.tar forums-bcc1eb1c0ec6edc8857dac2837a4c9aa0110bbea.tar.gz forums-bcc1eb1c0ec6edc8857dac2837a4c9aa0110bbea.tar.bz2 forums-bcc1eb1c0ec6edc8857dac2837a4c9aa0110bbea.tar.xz forums-bcc1eb1c0ec6edc8857dac2837a4c9aa0110bbea.zip |
- only bugfixes
- use usergroup function to activate users at admin index
git-svn-id: file:///svn/phpbb/trunk@5200 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/admin_groups.php')
-rw-r--r-- | phpBB/adm/admin_groups.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/adm/admin_groups.php b/phpBB/adm/admin_groups.php index c758f4978d..4c0e546670 100644 --- a/phpBB/adm/admin_groups.php +++ b/phpBB/adm/admin_groups.php @@ -604,7 +604,7 @@ function swatch() FROM ' . USERS_TABLE . ' u, ' . USER_GROUP_TABLE . " ug WHERE ug.group_id = $group_id AND u.user_id = ug.user_id - ORDER BY ug.group_leader DESC, ug.user_pending DESC, u.username + ORDER BY ug.group_leader DESC, ug.user_pending ASC, u.username LIMIT $start, " . $config['topics_per_page']; $result = $db->sql_query($sql); @@ -674,26 +674,26 @@ function swatch() <td class="row3" colspan="5"><b><?php echo $user->lang['GROUP_APPROVED']; ?></b></td> </tr> <?php + if (sizeof($group_data['member'])) { - $pending = $group_data['member'][0]['user_pending']; - $row_class = ''; + $pending = false; + foreach ($group_data['member'] as $row) { - if ($pending) - { + $row_class = ($row_class == 'row1') ? 'row2' : 'row1'; + if ($row['user_pending'] && !$pending) + { ?> <tr> <td class="row3" colspan="5"><b><?php echo $user->lang['GROUP_PENDING']; ?></b></td> </tr> <?php - + $pending = true; } - $row_class = ($row_class == 'row1') ? 'row2' : 'row1'; - ?> <tr class="<?php echo $row_class; ?>"> <td><a href="<?php echo "admin_users.$phpEx$SID&mode=edit&u=" . $row['user_id']; ?>"><?php echo $row['username']; ?></a></td> |