1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 16:00:22 +01:00

Sorry @Kyokou, this should fix both problems, close ctrlcctrlv/infinity#399

This commit is contained in:
8chan 2015-02-20 10:16:28 +00:00
parent 7364e85351
commit 8c63d906e9

View File

@ -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)";
}
}