[ticket/16260] Missing check whether the index exists in ACP - PHP 7.4

PHPBB3-16260
This commit is contained in:
3D-I 2019-12-22 21:03:35 +01:00
parent 16a163662b
commit dbc164e131

View file

@ -530,9 +530,7 @@ class acp_board
if ($submit)
{
if (isset($data['type']))
{
if (strpos($data['type'], 'password') === 0 && $config_value === '********')
if (isset($data['type']) && strpos($data['type'], 'password') === 0 && $config_value === '********')
{
/**
* Do not update password fields if the content is ********,
@ -541,7 +539,6 @@ class acp_board
*/
continue;
}
}
$config->set($config_name, $config_value);