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