diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-02-01 12:45:05 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-02-01 12:45:05 +0000 |
commit | fbea6fbc31e45332f9bb56aa0a65eeba3451655a (patch) | |
tree | 05fb04d07b878db8da71f4df6d25ebef4b32b998 /phpBB/memberlist.php | |
parent | f24069d32c39d21037503b0c5d645a5929291f69 (diff) | |
download | forums-fbea6fbc31e45332f9bb56aa0a65eeba3451655a.tar forums-fbea6fbc31e45332f9bb56aa0a65eeba3451655a.tar.gz forums-fbea6fbc31e45332f9bb56aa0a65eeba3451655a.tar.bz2 forums-fbea6fbc31e45332f9bb56aa0a65eeba3451655a.tar.xz forums-fbea6fbc31e45332f9bb56aa0a65eeba3451655a.zip |
Try to sort last active date on memberlist correctly at least on current page (Bug #18665) - patch provided by phillipK
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8359 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 f7c9d101a8..d021581cb2 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) |