Skip to content

Commit

Permalink
Update user.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jun 11, 2024
1 parent 8e81e54 commit bc16446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/user.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bc16446

Please sign in to comment.