mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/9892] Q&A CAPTCHA did not work on firebird, so no need to change config
PHPBB3-9892
This commit is contained in:
parent
6cab45b28e
commit
cd3d23810f
1 changed files with 3 additions and 6 deletions
|
@ -1913,16 +1913,13 @@ function change_database_data(&$no_updates, $version)
|
|||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
global $db_tools;
|
||||
global $db_tools, $table_prefix;
|
||||
|
||||
// Recover from potentially broken Q&A CAPTCHA table on firebird
|
||||
// Q&A CAPTCHA was uninstallable, so it's safe to remove these
|
||||
// without data loss
|
||||
if ($db_tools->sql_layer == 'firebird')
|
||||
{
|
||||
if ($config['captcha_plugin'] == 'phpbb_captcha_qa')
|
||||
{
|
||||
setconfig('captcha_plugin', 'phpbb_captcha_nogd');
|
||||
}
|
||||
|
||||
$tables = array(
|
||||
$table_prefix . 'captcha_questions',
|
||||
$table_prefix . 'captcha_answers',
|
||||
|
|
Loading…
Add table
Reference in a new issue