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
This commit is contained in:
Henry Sudhof 2009-08-16 21:07:11 +00:00
parent 3896638727
commit 6cc55a3436

View file

@ -354,7 +354,8 @@ class phpbb_captcha_qa
if (strlen($error)) if (strlen($error))
{ {
// okay, incorrect answer. Let's ask a new question. // okay, incorrect answer. Let's ask a new question.
$this->new_attempt(); // $this->new_attempt();
$this->solved = false;
return $error; return $error;
} }
else else
@ -433,7 +434,7 @@ class phpbb_captcha_qa
function load_answer() function load_answer()
{ {
global $db, $user; global $db, $user;
$sql = 'SELECT con.question_id, attempts, question_text, strict $sql = 'SELECT con.question_id, attempts, question_text, strict
FROM ' . CAPTCHA_QA_CONFIRM_TABLE . ' con, ' . CAPTCHA_QUESTIONS_TABLE . " qes FROM ' . CAPTCHA_QA_CONFIRM_TABLE . ' con, ' . CAPTCHA_QUESTIONS_TABLE . " qes
WHERE con.question_id = qes.question_id WHERE con.question_id = qes.question_id