mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-13 23:08:53 +00:00
Merge pull request #4317 from rmcgirr83/ticket_14610
[ticket/14610] Don't log an error if the Q&A captcha has been solved
This commit is contained in:
commit
734972cc3d
1 changed files with 9 additions and 5 deletions
|
@ -222,7 +222,11 @@ class qa
|
||||||
{
|
{
|
||||||
global $phpbb_log, $template, $user;
|
global $phpbb_log, $template, $user;
|
||||||
|
|
||||||
if ($this->is_solved() || empty($this->question_text) || !count($this->question_ids))
|
if ($this->is_solved())
|
||||||
|
{
|
||||||
|
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')));
|
||||||
|
|
Loading…
Add table
Reference in a new issue