[ticket/15876] MySQL 5.7+ support for Q&A captch plugin

PHPBB3-15876
This commit is contained in:
Nuno Lopes 2018-11-24 23:43:41 +00:00
parent 5179e4f93f
commit eb1cb07341

View file

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