aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2008-09-24 11:32:25 +0000
committerHenry Sudhof <kellanved@phpbb.com>2008-09-24 11:32:25 +0000
commit7fed490277f75646e77c78a47534e3a3b37ed7eb (patch)
tree2932fff07f2d30c273cbff150222fc056ef11c89
parent3bcf4ecd96bd1f6e821d44e73d71459b0e1a9544 (diff)
downloadforums-7fed490277f75646e77c78a47534e3a3b37ed7eb.tar
forums-7fed490277f75646e77c78a47534e3a3b37ed7eb.tar.gz
forums-7fed490277f75646e77c78a47534e3a3b37ed7eb.tar.bz2
forums-7fed490277f75646e77c78a47534e3a3b37ed7eb.tar.xz
forums-7fed490277f75646e77c78a47534e3a3b37ed7eb.zip
should make last_active work again
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8928 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/memberlist.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 611aa11e59..e4c60d8464 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -1623,15 +1623,15 @@ function _sort_last_active($first, $second)
{
global $id_cache, $sort_dir;
- $lesser_than = ($sort_dir === 'a') ? -1 : 1;
+ $lesser_than = ($sort_dir === 'd') ? -1 : 1;
if (isset($id_cache[$first]['group_leader']) && $id_cache[$first]['group_leader'] && (!isset($id_cache[$second]['group_leader']) || !$id_cache[$second]['group_leader']))
{
- return 1;
+ return -1;
}
else if (isset($id_cache[$second]['group_leader']) && (!isset($id_cache[$first]['group_leader']) || !$id_cache[$first]['group_leader']) && $id_cache[$second]['group_leader'])
{
- return -1;
+ return 1;
}
else
{