diff --git a/inc/bans.php b/inc/bans.php index e804f8b1..b2c001f5 100644 --- a/inc/bans.php +++ b/inc/bans.php @@ -165,9 +165,7 @@ class Bans { $query_addition .= "WHERE `board` IN (".$boards.")"; } if ($board_access !== FALSE) { - if ($query_addition) { - $query_addition .= " AND (`public_bans` IS TRUE)"; - } else { + if (!$query_addition) { $query_addition .= " WHERE (`public_bans` IS TRUE)"; } }