phpBB

Code Changes

File: memberlist.php

  Unmodified   Added   Modified   Removed
Line 1036Line 1036
		if ($auth->acl_get('u_viewonline'))
{
$sort_key_text['l'] = $user->lang['SORT_LAST_ACTIVE'];

		if ($auth->acl_get('u_viewonline'))
{
$sort_key_text['l'] = $user->lang['SORT_LAST_ACTIVE'];

			$sort_key_sql['l'] = 'u.user_lastvisit';

			$sort_key_sql['l'] = 'u.user_last_active';

		}

$sort_key_text['m'] = $user->lang['SORT_RANK'];

		}

$sort_key_text['m'] = $user->lang['SORT_RANK'];

Line 1138Line 1138
				{
if ($active_select === 'lt' && (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';

						$sql_where .= ' AND u.user_last_active = 0';

					}
else if ($active_select === 'gt')
{

					}
else if ($active_select === 'gt')
{

						$sql_where .= ' AND u.user_lastvisit ' . $find_key_match[$active_select] . ' ' . $active_time;

						$sql_where .= ' AND u.user_last_active ' . $find_key_match[$active_select] . ' ' . $active_time;

					}
else
{

					}
else
{

						$sql_where .= ' AND (u.user_lastvisit > 0 AND u.user_lastvisit < ' . $active_time . ')';

						$sql_where .= ' AND (u.user_last_active > 0 AND u.user_last_active < ' . $active_time . ')';

					}
}
}

					}
}
}

Line 1713Line 1713
			{
$row['session_time'] = $session_ary[$row['user_id']]['session_time'] ?? 0;
$row['session_viewonline'] = $session_ary[$row['user_id']]['session_viewonline'] ?? 0;

			{
$row['session_time'] = $session_ary[$row['user_id']]['session_time'] ?? 0;
$row['session_viewonline'] = $session_ary[$row['user_id']]['session_viewonline'] ?? 0;

				$row['last_visit'] = (!empty($row['session_time'])) ? $row['session_time'] : $row['user_lastvisit'];

				$row['last_visit'] = (!empty($row['session_time'])) ? $row['session_time'] : $row['user_last_active'];


$id_cache[$row['user_id']] = $row;
}


$id_cache[$row['user_id']] = $row;
}