diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2008-02-02 15:24:55 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-02-02 15:24:55 +0000 |
| commit | e9e9e8e69c3aee47d5bfbc24b2fb9f335cddf36a (patch) | |
| tree | 8d2fe110a9af4b52f5766c0a64d77e35bb8b1ec9 /phpBB/memberlist.php | |
| parent | 2e5e0a7868b246427943feb096a383ccc355a344 (diff) | |
| download | forums-e9e9e8e69c3aee47d5bfbc24b2fb9f335cddf36a.tar forums-e9e9e8e69c3aee47d5bfbc24b2fb9f335cddf36a.tar.gz forums-e9e9e8e69c3aee47d5bfbc24b2fb9f335cddf36a.tar.bz2 forums-e9e9e8e69c3aee47d5bfbc24b2fb9f335cddf36a.tar.xz forums-e9e9e8e69c3aee47d5bfbc24b2fb9f335cddf36a.zip | |
merge revisions: #r8359, #r8360, #r8368
git-svn-id: file:///svn/phpbb/trunk@8369 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/memberlist.php')
| -rw-r--r-- | phpBB/memberlist.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index afe9de2432..ca71131bc1 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -1369,7 +1369,8 @@ switch ($mode) if ($sort_key == 'l') { $lesser_than = ($sort_dir == 'a') ? -1 : 1; - uasort($id_cache, create_function('$first, $second', "return (\$first['last_visit'] == \$second['last_visit']) ? 0 : ((\$first['last_visit'] < \$second['last_visit']) ? $lesser_than : ($lesser_than * -1));")); +// uasort($id_cache, create_function('$first, $second', "return (\$first['last_visit'] == \$second['last_visit']) ? 0 : ((\$first['last_visit'] < \$second['last_visit']) ? $lesser_than : ($lesser_than * -1));")); + usort($user_list, create_function('$first, $second', "global \$id_cache; return (\$id_cache[\$first]['last_visit'] == \$id_cache[\$second]['last_visit']) ? 0 : ((\$id_cache[\$first]['last_visit'] < \$id_cache[\$second]['last_visit']) ? $lesser_than : ($lesser_than * -1));")); } for ($i = 0, $end = sizeof($user_list); $i < $end; ++$i) |
