phpBB

Code Changes

File: phpbb/user_loader.php

  Unmodified   Added   Modified   Removed
Line 64Line 64
	* Load user helper
*
* @param array $user_ids

	* Load user helper
*
* @param array $user_ids

 
	* @param array $ignore_types user types to ignore

	*/

	*/

	public function load_users(array $user_ids)

	public function load_users(array $user_ids, array $ignore_types = array())

	{
$user_ids[] = ANONYMOUS;


	{
$user_ids[] = ANONYMOUS;


Line 79Line 80
		{
$sql = 'SELECT *
FROM ' . $this->users_table . '

		{
$sql = 'SELECT *
FROM ' . $this->users_table . '

				WHERE ' . $this->db->sql_in_set('user_id', $user_ids);


				WHERE ' . $this->db->sql_in_set('user_id', $user_ids) . '
AND ' . $this->db->sql_in_set('user_type', $ignore_types, true, true);

			$result = $this->db->sql_query($sql);

while ($row = $this->db->sql_fetchrow($result))

			$result = $this->db->sql_query($sql);

while ($row = $this->db->sql_fetchrow($result))