mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Merge branch '3.2.x'
This commit is contained in:
@@ -64,8 +64,9 @@ class user_loader
|
||||
* 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;
|
||||
|
||||
@@ -79,7 +80,8 @@ class user_loader
|
||||
{
|
||||
$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))
|
||||
|
Reference in New Issue
Block a user