forked from GithubBackups/vichan
Sorry @Kyokou, this should fix both problems, close ctrlcctrlv/infinity#399
This commit is contained in:
parent
7364e85351
commit
8c63d906e9
@ -165,9 +165,7 @@ class Bans {
|
|||||||
$query_addition .= "WHERE `board` IN (".$boards.")";
|
$query_addition .= "WHERE `board` IN (".$boards.")";
|
||||||
}
|
}
|
||||||
if ($board_access !== FALSE) {
|
if ($board_access !== FALSE) {
|
||||||
if ($query_addition) {
|
if (!$query_addition) {
|
||||||
$query_addition .= " AND (`public_bans` IS TRUE)";
|
|
||||||
} else {
|
|
||||||
$query_addition .= " WHERE (`public_bans` IS TRUE)";
|
$query_addition .= " WHERE (`public_bans` IS TRUE)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user