From 3572f4c92ef554860262dbd953953cafb3af2ebc Mon Sep 17 00:00:00 2001 From: Richard McGirr Date: Sun, 8 May 2016 08:50:06 -0400 Subject: [PATCH] [ticket/14610] Don't log an error if the Q&A captcha has been solved https://tracker.phpbb.com/browse/PHPBB3-14610 PHPBB3-14610 --- phpBB/phpbb/captcha/plugins/qa.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpBB/phpbb/captcha/plugins/qa.php b/phpBB/phpbb/captcha/plugins/qa.php index 8f2da838c5..5b63cf53b8 100644 --- a/phpBB/phpbb/captcha/plugins/qa.php +++ b/phpBB/phpbb/captcha/plugins/qa.php @@ -224,6 +224,11 @@ class qa 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()) + { + return; + } /** @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'))); return false;