mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 09:20:58 +01:00
bans.php: FIX every IP matching to any ban that was going to expire eventually
This commit is contained in:
parent
ffe855222e
commit
7e4acbb6d2
@ -134,7 +134,7 @@ class Bans {
|
||||
WHERE
|
||||
(' . ($board !== false ? '(`board` IS NULL OR `board` = :board) AND' : '') . '
|
||||
(`ipstart` = :ip OR (:ip >= `ipstart` AND :ip <= `ipend`)) OR (``bans``.id = :id))
|
||||
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…
Reference in New Issue
Block a user