forked from leftypol/leftypol
bans.php: FIX every IP matching to any ban that was going to expire eventually
This commit is contained in:
parent
024a6fe20b
commit
60241a474c
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ class Bans {
|
|||
WHERE
|
||||
(' . ($board !== false ? '(`board` IS NULL OR `board` = :board) AND' : '') . '
|
||||
(`ipstart` = :ip OR (:ip >= `ipstart` AND :ip <= `ipend`)))
|
||||
AND `expires` IS NULL OR `expires` >= :curr_time
|
||||
AND (`expires` IS NULL OR `expires` >= :curr_time)
|
||||
ORDER BY `expires` IS NULL, `expires` DESC');
|
||||
|
||||
if ($board !== false) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue