aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-07-27 16:46:02 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-07-27 16:46:02 +0000
commitab3480b2e1304bf54fe5f3d708dd65b73fe9c7c0 (patch)
treeb1449f9fb50a40f8e87ba8c3ca01e11b9c6211c6 /phpBB/search.php
parenta2cd2c4de3cd147bf880663e7115a7cef46ae45f (diff)
downloadforums-ab3480b2e1304bf54fe5f3d708dd65b73fe9c7c0.tar
forums-ab3480b2e1304bf54fe5f3d708dd65b73fe9c7c0.tar.gz
forums-ab3480b2e1304bf54fe5f3d708dd65b73fe9c7c0.tar.bz2
forums-ab3480b2e1304bf54fe5f3d708dd65b73fe9c7c0.tar.xz
forums-ab3480b2e1304bf54fe5f3d708dd65b73fe9c7c0.zip
Wrong var ... naughty Paul ... smacked wrists
git-svn-id: file:///svn/phpbb/trunk@2762 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/search.php')
-rw-r--r--phpBB/search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/search.php b/phpBB/search.php
index 0e571617cd..cd2fc68894 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -1383,13 +1383,13 @@ function username_search()
$where_sql .= ( $msn ) ? " AND user_msnm LIKE '" . str_replace('*', '%', $msn) ."' " : '';
$where_sql .= ( $joined ) ? " AND user_regdate " . $key_match[$joined_select] . " " . gmmktime(0, 0, 0, $joined[1], $joined[2], $joined[0]) : '';
$where_sql .= ( $count ) ? " AND user_posts " . $key_match[$count_select] . " $count " : '';
- $where_sql .= ( $active ) ? " AND user_session_time " . $key_match[$active_select] . " " . gmmktime(0, 0, 0, $active[1], $active[2], $active[0]) : '';
+ $where_sql .= ( $active ) ? " AND user_lastvisit " . $key_match[$active_select] . " " . gmmktime(0, 0, 0, $active[1], $active[2], $active[0]) : '';
$order_by = $sort_by_types[$sort_by] . " $sort_order ";
}
else
{
- $order_by = "user_session_time $sort_order ";
+ $order_by = "user_lastvisit $sort_order ";
}
$sql = "SELECT COUNT(user_id) AS total_users