bans.php: FIX every IP matching to any ban that was going to expire eventually

This commit is contained in:
Zankaria 2024-07-14 19:23:14 +02:00
parent 024a6fe20b
commit 60241a474c

View file

@ -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) {