1
0
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:
Zankaria 2024-07-14 19:23:14 +02:00 committed by Zankaria
parent ffe855222e
commit 7e4acbb6d2

View File

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