From f381c0d3ef39a078a21b727a07caeeeef2745fa4 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 24 May 2003 00:30:53 +0000 Subject: more fun with cookies git-svn-id: file:///svn/phpbb/trunk@4054 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/functions.php') 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) . "')"; -- cgit v1.2.1