diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2009-08-10 11:14:21 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-08-10 11:14:21 +0000 |
commit | d327154a5a5e9360b8ef5407da56e46a6629b26f (patch) | |
tree | 4115767817fc7e1063be845ccfe3cfcc20f05110 /phpBB/includes/acp/acp_board.php | |
parent | 2547955b619e009df9c9ee4b8be2cc7c6da14630 (diff) | |
download | forums-d327154a5a5e9360b8ef5407da56e46a6629b26f.tar forums-d327154a5a5e9360b8ef5407da56e46a6629b26f.tar.gz forums-d327154a5a5e9360b8ef5407da56e46a6629b26f.tar.bz2 forums-d327154a5a5e9360b8ef5407da56e46a6629b26f.tar.xz forums-d327154a5a5e9360b8ef5407da56e46a6629b26f.zip |
ok, r9704 was correct - i used a wrong code base within my tests. :/
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9943 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_board.php')
-rw-r--r-- | phpBB/includes/acp/acp_board.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php index ea0de2ef30..7bc94d685e 100644 --- a/phpBB/includes/acp/acp_board.php +++ b/phpBB/includes/acp/acp_board.php @@ -440,7 +440,7 @@ class acp_board // We go through the display_vars to make sure no one is trying to set variables he/she is not allowed to... foreach ($display_vars['vars'] as $config_name => $null) { - if ($null === false || strpos($config_name, 'legend') !== false) + if (!isset($cfg_array[$config_name]) || strpos($config_name, 'legend') !== false) { continue; } @@ -450,12 +450,6 @@ class acp_board continue; } - // If not set, then this is a valid entry and needs to be emptied (select_multiple, checkbox) - if (!isset($cfg_array[$config_name])) - { - $cfg_array[$config_name] = ''; - } - // Erm, we spotted an array if ($null['type'] == 'select_multiple' && $submit && isset($_REQUEST['config'][$config_name])) { |