Fixed bug in admin_board.php for board settings having single quotes in it

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4932 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2004-07-15 18:02:44 +00:00
parent b564d1f89e
commit 0bf74adc30

View file

@ -43,7 +43,7 @@ else
{
$config_name = $row['config_name'];
$config_value = $row['config_value'];
$default_config[$config_name] = str_replace("'", "\'", $config_value);
$default_config[$config_name] = isset($HTTP_POST_VARS['submit']) ? str_replace("'", "\'", $config_value) : $config_value;
$new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name];