Skip to content

Commit

Permalink
No Email bans or IP ones
Browse files Browse the repository at this point in the history
CSS Unix line endings
  • Loading branch information
3Di committed Oct 14, 2017
1 parent 28f72f2 commit 1a0176a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/tpotm.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,16 +362,18 @@ public function wishes_admin_mods()
}

/**
* Gets the complete list of banned users' ids.
* Gets the complete list of banned users.
*
* @return array Array of banned users' ids if any, empty array otherwise
*/
public function banned_users_ids()
{
$ban_ids = [];

/* No Email bans or IP ones */
$sql = 'SELECT ban_userid
FROM ' . BANLIST_TABLE;
FROM ' . BANLIST_TABLE . '
WHERE ban_userid IS NOT NULL';
$result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result))
{
Expand Down

0 comments on commit 1a0176a

Please sign in to comment.