From 7e4acbb6d2cf69e797a87dd7948adc96c3820867 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sun, 14 Jul 2024 19:23:14 +0200 Subject: [PATCH] bans.php: FIX every IP matching to any ban that was going to expire eventually --- inc/bans.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/bans.php b/inc/bans.php index 8df9ae97..8f396f0b 100644 --- a/inc/bans.php +++ b/inc/bans.php @@ -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) {