From cfbb8a10e7f01fd1bc7f685cde0049b005e0e27e Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 20 Mar 2003 00:29:24 +0000 Subject: sql char field types must be enclosed in ' rather than " git-svn-id: file:///svn/phpbb/trunk@3682 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 19a4b9fc75..34fda0d4d3 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -32,8 +32,8 @@ function set_config($config_name, $config_value, $is_dynamic = FALSE) } else { - $db->sql_query('DELETE FROM ' . CONFIG_TABLE . ' - WHERE config_name = "' . $config_name . '"'); + $db->sql_query('DELETE FROM ' . CONFIG_TABLE . " + WHERE config_name = '" . $config_name . "'"); $sql = 'INSERT INTO ' . CONFIG_TABLE . " (config_name, config_value) VALUES ('$config_name', '" . $db->sql_escape($config_value) . "')"; @@ -244,7 +244,7 @@ function make_jumpbox($action, $forum_id = false, $extra_form_fields = array()) $sql = 'SELECT forum_id, forum_name, forum_postable, left_id, right_id FROM ' . FORUMS_TABLE . ' ORDER BY left_id ASC'; - $result = $db->sql_query($sql); + $result = $db->sql_query($sql, 120); $right = $cat_right = 0; $padding = $forum_list = $holding = ''; -- cgit v1.2.1