mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-24 12:18:51 +00:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12711] Cast values to string such that they are quoted in SQL queries.
This commit is contained in:
commit
13fedd4764
1 changed files with 2 additions and 2 deletions
|
@ -105,8 +105,8 @@ class db_text
|
|||
if (!$this->db->sql_affectedrows($result))
|
||||
{
|
||||
$sql = 'INSERT INTO ' . $this->table . ' ' . $this->db->sql_build_array('INSERT', array(
|
||||
'config_name' => $key,
|
||||
'config_value' => $value,
|
||||
'config_name' => (string) $key,
|
||||
'config_value' => (string) $value,
|
||||
));
|
||||
$this->db->sql_query($sql);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue