Author: acydburn
Date: Mon Aug 10 10:13:28 2009
New Revision: 9941
Log:
reverted all changes made to this code block, especially the one mentioned in r9704 with reference to wrong bug report "undoing change from #9575, as it broke the board disabled message". The board disabled message still works fine. If there are any problems with the code and settings within the ACP, please tell me and i will check them.
Modified:
branches/phpBB-3_0_0/phpBB/includes/acp/acp_board.php
Modified: branches/phpBB-3_0_0/phpBB/includes/acp/acp_board.php
==============================================================================
*** branches/phpBB-3_0_0/phpBB/includes/acp/acp_board.php (original)
--- branches/phpBB-3_0_0/phpBB/includes/acp/acp_board.php Mon Aug 10 10:13:28 2009
***************
*** 440,446 ****
// 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 (!isset($cfg_array[$config_name]) || strpos($config_name, 'legend') !== false)
{
continue;
}
--- 440,446 ----
// 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)
{
continue;
}
***************
*** 450,455 ****
--- 450,461 ----
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]))
{
|