diff options
author | Richard McGirr <rmcgirr83@gmail.com> | 2016-05-08 08:50:06 -0400 |
---|---|---|
committer | Richard McGirr <rmcgirr83@gmail.com> | 2016-05-08 08:50:06 -0400 |
commit | 3572f4c92ef554860262dbd953953cafb3af2ebc (patch) | |
tree | 95f2512416509ba710bab35db40c72b7f1bdd7de | |
parent | 4cdec74e94728605089587f2fd0667b3b3e4e558 (diff) | |
download | forums-3572f4c92ef554860262dbd953953cafb3af2ebc.tar forums-3572f4c92ef554860262dbd953953cafb3af2ebc.tar.gz forums-3572f4c92ef554860262dbd953953cafb3af2ebc.tar.bz2 forums-3572f4c92ef554860262dbd953953cafb3af2ebc.tar.xz forums-3572f4c92ef554860262dbd953953cafb3af2ebc.zip |
[ticket/14610] Don't log an error if the Q&A captcha has been solved
https://tracker.phpbb.com/browse/PHPBB3-14610
PHPBB3-14610
-rw-r--r-- | phpBB/phpbb/captcha/plugins/qa.php | 5 |
1 files changed, 5 insertions, 0 deletions
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; |