mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-14 21:56:39 +02:00
[ticket/16260] Missing check whether the index exists in ACP - PHP 7.4
PHPBB3-16260
This commit is contained in:
@ -530,11 +530,13 @@ class acp_board
|
|||||||
|
|
||||||
if ($submit)
|
if ($submit)
|
||||||
{
|
{
|
||||||
if (strpos($data['type'], 'password') === 0 && $config_value === '********')
|
if (strpos(isset($data['type']) ? $data['type'] : '', 'password') === 0 && $config_value === '********')
|
||||||
{
|
{
|
||||||
// Do not update password fields if the content is ********,
|
/**
|
||||||
// because that is the password replacement we use to not
|
* Do not update password fields if the content is ********,
|
||||||
// send the password to the output
|
* because that is the password replacement we use to not
|
||||||
|
* send the password to the output
|
||||||
|
*/
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$config->set($config_name, $config_value);
|
$config->set($config_name, $config_value);
|
||||||
|
Reference in New Issue
Block a user