a_
or m_
permissions, but not sure how to go about this with the SQL below.Code: Select all
$sql = 'SELECT user_id
FROM ' . USERS_TABLE . '
WHERE ' . $db->sql_in_set('user_id', $array) . "
AND user_id <> " . $this->user->data['user_id'];
$result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result))
{
unset($array[$row['user_id']]);
}