mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 19:08:53 +00:00
[ticket/16260] Missing check whether the index exists in ACP - PHP 7.4
PHPBB3-16260
This commit is contained in:
parent
ffb0adfc59
commit
16a163662b
1 changed files with 11 additions and 7 deletions
|
@ -530,15 +530,19 @@ class acp_board
|
||||||
|
|
||||||
if ($submit)
|
if ($submit)
|
||||||
{
|
{
|
||||||
if (strpos(isset($data['type']) ? $data['type'] : '', 'password') === 0 && $config_value === '********')
|
if (isset($data['type']))
|
||||||
{
|
{
|
||||||
/**
|
if (strpos($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
|
/**
|
||||||
* send the password to the output
|
* Do not update password fields if the content is ********,
|
||||||
*/
|
* because that is the password replacement we use to not
|
||||||
continue;
|
* send the password to the output
|
||||||
|
*/
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$config->set($config_name, $config_value);
|
$config->set($config_name, $config_value);
|
||||||
|
|
||||||
if ($config_name == 'allow_quick_reply' && isset($_POST['allow_quick_reply_enable']))
|
if ($config_name == 'allow_quick_reply' && isset($_POST['allow_quick_reply_enable']))
|
||||||
|
|
Loading…
Add table
Reference in a new issue