mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/14610] Implement lavigor method
PHPBB3-14610
This commit is contained in:
parent
f57f09f814
commit
03348087d8
1 changed files with 9 additions and 10 deletions
|
@ -222,13 +222,12 @@ class qa
|
||||||
{
|
{
|
||||||
global $phpbb_log, $template, $user;
|
global $phpbb_log, $template, $user;
|
||||||
|
|
||||||
if ($this->is_solved() || empty($this->question_text) || !count($this->question_ids))
|
|
||||||
{
|
|
||||||
// don't log an error if the captcha has been solved
|
|
||||||
if ($this->is_solved())
|
if ($this->is_solved())
|
||||||
{
|
{
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
|
else if (empty($this->question_text) || !count($this->question_ids))
|
||||||
|
{
|
||||||
/** @var \phpbb\log\log_interface $phpbb_log */
|
/** @var \phpbb\log\log_interface $phpbb_log */
|
||||||
$phpbb_log->add('critical', $user->data['user_id'], $user->ip, 'LOG_ERROR_CAPTCHA', time(), array($user->lang('CONFIRM_QUESTION_MISSING')));
|
$phpbb_log->add('critical', $user->data['user_id'], $user->ip, 'LOG_ERROR_CAPTCHA', time(), array($user->lang('CONFIRM_QUESTION_MISSING')));
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue