From ab3480b2e1304bf54fe5f3d708dd65b73fe9c7c0 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 27 Jul 2002 16:46:02 +0000 Subject: [PATCH] Wrong var ... naughty Paul ... smacked wrists git-svn-id: file:///svn/phpbb/trunk@2762 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/search.php | 4 ++-- 1 file 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