[ticket/16124] Search users who have never logged in for lt case only

PHPBB3-16124
This commit is contained in:
rxu 2019-08-06 01:15:50 +07:00
parent 8339269919
commit e8dcf27ee3
No known key found for this signature in database
GPG key ID: 955F0567380E586A

View file

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