1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-06 22:45:02 +02:00

[ticket/16124] Fix users search by last visit time in memberlist.php

PHPBB3-16124
This commit is contained in:
rxu 2019-08-05 20:12:10 +07:00
parent 5307da11b6
commit 8339269919
No known key found for this signature in database
GPG Key ID: 955F0567380E586A

View File

@ -1073,7 +1073,18 @@ switch ($mode)
if ($active_time !== false)
{
$sql_where .= " AND u.user_lastvisit " . $find_key_match[$active_select] . ' ' . $active_time;
if ((int) $active[0] == 0 && (int) $active[1] == 0 && (int) $active[2] == 0)
{
$sql_where .= ' AND u.user_lastvisit = 0';
}
else if ($active_select != 'lt')
{
$sql_where .= ' AND u.user_lastvisit ' . $find_key_match[$active_select] . ' ' . $active_time;
}
else
{
$sql_where .= ' AND (u.user_lastvisit > 0 AND u.user_lastvisit < ' . $active_time . ')';
}
}
}