aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard McGirr <rmcgirr83@gmail.com>2016-05-08 08:50:06 -0400
committerRichard McGirr <rmcgirr83@gmail.com>2016-05-08 08:50:06 -0400
commit3572f4c92ef554860262dbd953953cafb3af2ebc (patch)
tree95f2512416509ba710bab35db40c72b7f1bdd7de
parent4cdec74e94728605089587f2fd0667b3b3e4e558 (diff)
downloadforums-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.php5
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;