From 60241a474c3a0a6a4154b5c953968b2f329bf932 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 7e3a1408..d8681885 100644 --- a/inc/bans.php +++ b/inc/bans.php @@ -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) {