diff options
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index de1f7064e8..d293157bd7 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -35,8 +35,9 @@ function set_config($config_name, $config_value, $is_dynamic = FALSE) } else { - $db->sql_query('DELETE FROM ' . CONFIG_TABLE . " - WHERE config_name = '" . $config_name . "'"); + $sql = 'DELETE FROM ' . CONFIG_TABLE . " + WHERE config_name = '$config_name'"; + $db->sql_query($sql); $sql = 'INSERT INTO ' . CONFIG_TABLE . " (config_name, config_value) VALUES ('$config_name', '" . $db->sql_escape($config_value) . "')"; |