Merge pull request #5456 from nunoplopes/ticket/15876

[ticket/15876] MySQL 5.7+ support for Q&A captcha plugin
This commit is contained in:
Marc Alexander 2018-12-24 15:49:13 +01:00
commit 64b66a51b6
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -107,8 +107,7 @@ class qa
$sql = 'SELECT q.question_id, q.lang_iso $sql = 'SELECT q.question_id, q.lang_iso
FROM ' . $this->table_captcha_questions . ' q, ' . $this->table_captcha_answers . ' a FROM ' . $this->table_captcha_questions . ' q, ' . $this->table_captcha_answers . ' a
WHERE q.question_id = a.question_id WHERE q.question_id = a.question_id';
GROUP BY lang_iso';
$result = $db->sql_query($sql, 7200); $result = $db->sql_query($sql, 7200);
while ($row = $db->sql_fetchrow($result)) while ($row = $db->sql_fetchrow($result))