diff --git a/core/class/user.class.php b/core/class/user.class.php index 9026002c89..670019cb7a 100644 --- a/core/class/user.class.php +++ b/core/class/user.class.php @@ -327,8 +327,8 @@ public static function isBan(): bool { $values[] = array('datetime' => strtotime('now'), 'ip' => getClientIp()); $_SESSION['failed_count'] = 0; $_SESSION['failed_datetime'] = -1; - @session_write_close(); } + @session_write_close(); cache::set('security::banip', json_encode($values)); if (!is_array($values)) { $values = array();