1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-05 05:55:15 +02:00

Merge pull request #5779 from 3D-I/ticket/16260

[ticket/16260] Missing check whether the index exists in ACP - PHP 7.4
This commit is contained in:
Marc Alexander 2019-12-23 10:35:10 +01:00
commit 1f3e073894
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -530,13 +530,16 @@ class acp_board
if ($submit) if ($submit)
{ {
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 ********, /**
// 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);
if ($config_name == 'allow_quick_reply' && isset($_POST['allow_quick_reply_enable'])) if ($config_name == 'allow_quick_reply' && isset($_POST['allow_quick_reply_enable']))