mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/16735] Fix access array offset on value of type bool on login
Remove redundant type casting PHPBB3-16735
This commit is contained in:
@@ -155,7 +155,7 @@ class db extends base
|
||||
$login_error_attempts = 'LOGIN_ERROR_ATTEMPTS';
|
||||
|
||||
$user_login_attempts = $row ? ($this->config['max_login_attempts'] && $row['user_login_attempts'] >= $this->config['max_login_attempts']) : false;
|
||||
$ip_login_attempts = (bool) ($this->config['ip_login_limit_max'] && $attempts >= $this->config['ip_login_limit_max']);
|
||||
$ip_login_attempts = ($this->config['ip_login_limit_max'] && $attempts >= $this->config['ip_login_limit_max']);
|
||||
|
||||
$show_captcha = $user_login_attempts || $ip_login_attempts;
|
||||
|
||||
|
Reference in New Issue
Block a user