aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-05-24 00:30:53 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-05-24 00:30:53 +0000
commitf381c0d3ef39a078a21b727a07caeeeef2745fa4 (patch)
treef9300d4118baca17de470143ad6ac722b62a767d /phpBB/includes/functions.php
parentbea13814e7831d3a5f19709e598dbefbae6e222d (diff)
downloadforums-f381c0d3ef39a078a21b727a07caeeeef2745fa4.tar
forums-f381c0d3ef39a078a21b727a07caeeeef2745fa4.tar.gz
forums-f381c0d3ef39a078a21b727a07caeeeef2745fa4.tar.bz2
forums-f381c0d3ef39a078a21b727a07caeeeef2745fa4.tar.xz
forums-f381c0d3ef39a078a21b727a07caeeeef2745fa4.zip
more fun with cookies
git-svn-id: file:///svn/phpbb/trunk@4054 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php5
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) . "')";