mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 16:00:22 +01:00
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.")";
|
||||
}
|
||||
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``
|
||||
|
Loading…
Reference in New Issue
Block a user