Author: acydburn
Date: Mon Aug 10 12:17:24 2009
New Revision: 9944
Log:
check for not set values in acp_board to correctly grab those input elements not populated if empty (checkboxes and multiple select fields)
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 12:17:24 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 (strpos($config_name, 'legend') !== false)
{
continue;
}
***************
*** 450,455 ****
--- 450,461 ----
continue;
}
+ // It could happen that the cfg array is not set. This happens within feed settings if unselecting all forums in the multiple select fields for example (it is the same as checkbox handling)
+ 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]))
{
|