1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 16:00:22 +01:00
This commit is contained in:
8chan 2015-02-19 20:52:26 -08:00
parent c025c8f173
commit ef21c6d864

View File

@ -165,7 +165,11 @@ class Bans {
$query_addition .= "WHERE `board` IN (".$boards.")";
}
if ($board_access !== FALSE) {
$query_addition .= "AND (`public_bans` OR `public_bans` IS NULL)";
if ($query_addition) {
$query_addition .= " AND (`public_bans` IS TRUE)";
} else {
$query_addition .= " WHERE (`public_bans` IS TRUE)";
}
}
$query = query("SELECT ``bans``.*, `username`, `type` FROM ``bans``