forked from GithubBackups/vichan
Close ctrlcctrlv/infinity#396
This commit is contained in:
parent
c025c8f173
commit
ef21c6d864
@ -165,7 +165,11 @@ class Bans {
|
|||||||
$query_addition .= "WHERE `board` IN (".$boards.")";
|
$query_addition .= "WHERE `board` IN (".$boards.")";
|
||||||
}
|
}
|
||||||
if ($board_access !== FALSE) {
|
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``
|
$query = query("SELECT ``bans``.*, `username`, `type` FROM ``bans``
|
||||||
|
Loading…
x
Reference in New Issue
Block a user