1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-14 03:25:37 +02:00

Merge branch '3.3.x'

This commit is contained in:
Marc Alexander 2021-09-08 22:25:07 +02:00
commit 7bd8d8f245
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 3 additions and 3 deletions

View File

@ -170,8 +170,8 @@ class db extends config
if (!isset($this->config[$key])) if (!isset($this->config[$key]))
{ {
$sql = 'INSERT INTO ' . $this->table . ' ' . $this->db->sql_build_array('INSERT', array( $sql = 'INSERT INTO ' . $this->table . ' ' . $this->db->sql_build_array('INSERT', array(
'config_name' => $key, 'config_name' => $this->db->sql_escape($key),
'config_value' => $new_value, 'config_value' => $this->db->sql_escape($new_value),
'is_dynamic' => ($use_cache) ? 0 : 1)); 'is_dynamic' => ($use_cache) ? 0 : 1));
$this->db->sql_query($sql); $this->db->sql_query($sql);
} }

View File

@ -38,7 +38,7 @@ class google_recaptcha_v3 extends \phpbb\db\migration\migration
foreach (\phpbb\captcha\plugins\recaptcha_v3::get_actions() as $action) foreach (\phpbb\captcha\plugins\recaptcha_v3::get_actions() as $action)
{ {
$data[] = ['config.add', ["recaptcha_v3_threshold_{$action}", 0.5]]; $data[] = ['config.add', ["recaptcha_v3_threshold_{$action}", '0.5']];
} }
return $data; return $data;