mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16735] Fix access array offset on value of type bool on login
PHPBB3-16735
This commit is contained in:
parent
6d46c08191
commit
e0b4f3ff37
1 changed files with 4 additions and 2 deletions
|
@ -153,8 +153,10 @@ class db extends base
|
|||
}
|
||||
|
||||
$login_error_attempts = 'LOGIN_ERROR_ATTEMPTS';
|
||||
$show_captcha = ($this->config['max_login_attempts'] && $row['user_login_attempts'] >= $this->config['max_login_attempts']) ||
|
||||
($this->config['ip_login_limit_max'] && $attempts >= $this->config['ip_login_limit_max']);
|
||||
|
||||
$show_captcha = ($row) ? ($this->config['max_login_attempts'] && $row['user_login_attempts'] >= $this->config['max_login_attempts']) ||
|
||||
($this->config['ip_login_limit_max'] && $attempts >= $this->config['ip_login_limit_max']) : false;
|
||||
|
||||
if ($show_captcha)
|
||||
{
|
||||
$captcha = $this->captcha_factory->get_instance($this->config['captcha_plugin']);
|
||||
|
|
Loading…
Add table
Reference in a new issue