diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2009-08-16 21:07:11 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2009-08-16 21:07:11 +0000 |
commit | 6cc55a3436ea81482d0d2462b400e2b66274660d (patch) | |
tree | f3066f5bb07601ff74ecc43ab7a77a8abf4fadb4 | |
parent | 389663872784bd4c411e9b3a813107ec51e70b11 (diff) | |
download | forums-6cc55a3436ea81482d0d2462b400e2b66274660d.tar forums-6cc55a3436ea81482d0d2462b400e2b66274660d.tar.gz forums-6cc55a3436ea81482d0d2462b400e2b66274660d.tar.bz2 forums-6cc55a3436ea81482d0d2462b400e2b66274660d.tar.xz forums-6cc55a3436ea81482d0d2462b400e2b66274660d.zip |
don't pick a new question without an explicit reset call
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9997 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php b/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php index adc0811a57..35f42848b3 100644 --- a/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php +++ b/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php @@ -354,7 +354,8 @@ class phpbb_captcha_qa if (strlen($error)) { // okay, incorrect answer. Let's ask a new question. - $this->new_attempt(); + // $this->new_attempt(); + $this->solved = false; return $error; } else @@ -433,7 +434,7 @@ class phpbb_captcha_qa function load_answer() { global $db, $user; - + $sql = 'SELECT con.question_id, attempts, question_text, strict FROM ' . CAPTCHA_QA_CONFIRM_TABLE . ' con, ' . CAPTCHA_QUESTIONS_TABLE . " qes WHERE con.question_id = qes.question_id |