aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2009-09-21 11:36:36 +0000
committerHenry Sudhof <kellanved@phpbb.com>2009-09-21 11:36:36 +0000
commit61c6c07abcc8abf8ff671744486f6386c70fb625 (patch)
tree80590d4a0df11793d64a3616781f35116b072dab /phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
parent5382eb441d1dcf7c5bc2a1a49a4924d51fb151f5 (diff)
downloadforums-61c6c07abcc8abf8ff671744486f6386c70fb625.tar
forums-61c6c07abcc8abf8ff671744486f6386c70fb625.tar.gz
forums-61c6c07abcc8abf8ff671744486f6386c70fb625.tar.bz2
forums-61c6c07abcc8abf8ff671744486f6386c70fb625.tar.xz
forums-61c6c07abcc8abf8ff671744486f6386c70fb625.zip
#50485
Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10173 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php')
-rw-r--r--phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php4
1 files changed, 2 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 6f53e8c5ad..3e914ec524 100644
--- a/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
+++ b/phpBB/includes/captcha/plugins/phpbb_captcha_qa_plugin.php
@@ -56,13 +56,13 @@ class phpbb_captcha_qa
$this->answer = request_var('qa_answer', '', true);
$this->type = (int) $type;
- $this->question_lang = $user->data['user_lang'];
+ $this->question_lang = $user->lang_name;
// we need all defined questions - shouldn't be too many, so we can just grab them
// try the user's lang first
$sql = 'SELECT question_id
FROM ' . CAPTCHA_QUESTIONS_TABLE . "
- WHERE lang_iso = '" . $db->sql_escape($user->data['user_lang']) . "'";
+ WHERE lang_iso = '" . $db->sql_escape($user->lang_name) . "'";
$result = $db->sql_query($sql, 3600);
while ($row = $db->sql_fetchrow($result))