-
Bug
-
Resolution: Fixed
-
Blocker
-
3.1.0-b3
-
None
-
None
$sql = 'UPDATE ' . $this->table . "
|
SET config_value = '" . $this->db->sql_escape($value) . "'
|
WHERE config_name = '" . $this->db->sql_escape($key) . "'";
|
$result = $this->db->sql_query($sql);
|
|
if (!$this->db->sql_affectedrows($result))
|
{
|
$sql = 'INSERT INTO ' . $this->table . ' ' . $this->db->sql_build_array('INSERT', array(
|
'config_name' => $key,
|
'config_value' => $value,
|
));
|
$this->db->sql_query($sql);
|
}
|
MySQL returns 0 when no value has been updated, so it tries to create the key again.
- caused
-
PHPBB-12764 Wrong error message on install if mysqli is selected and the credentials are wrong
- Closed
- is related to
-
PHPBB-12734 Custom profile manager should not suppress errors when inserting user rows
- Closed