forked from leftypol/leftypol
bans.php: split find implementations
This commit is contained in:
parent
b88abb1c33
commit
870d3812d3
3 changed files with 72 additions and 33 deletions
|
@ -876,7 +876,7 @@ function checkBan($board = false) {
|
|||
}
|
||||
|
||||
foreach ($ips as $ip) {
|
||||
$bans = Bans::find($_SERVER['REMOTE_ADDR'], $board, $config['show_modname']);
|
||||
$bans = Bans::find($_SERVER['REMOTE_ADDR'], $board, $config['show_modname'], true);
|
||||
|
||||
foreach ($bans as &$ban) {
|
||||
if ($ban['expires'] && $ban['expires'] < time()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue