From 1a0176af9d10eacfa24eea1eebbd21a8f61b5185 Mon Sep 17 00:00:00 2001 From: 3Di Date: Sat, 14 Oct 2017 12:11:56 +0200 Subject: [PATCH] No Email bans or IP ones CSS Unix line endings --- core/tpotm.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/tpotm.php b/core/tpotm.php index c1ba5e2..4728104 100644 --- a/core/tpotm.php +++ b/core/tpotm.php @@ -362,7 +362,7 @@ 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 */ @@ -370,8 +370,10 @@ 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)) {