diff options
author | 3D-I <480857+3D-I@users.noreply.github.com> | 2019-12-22 21:03:35 +0100 |
---|---|---|
committer | 3D-I <480857+3D-I@users.noreply.github.com> | 2019-12-22 21:03:49 +0100 |
commit | dbc164e13188a8adf4478c1b4b3ce563e16486c3 (patch) | |
tree | 84a893da31227e44bc7d27a841b4a86a6984020d /phpBB/includes | |
parent | 16a163662bf463d7fa2195e73832e8bf4a26a06f (diff) | |
download | forums-dbc164e13188a8adf4478c1b4b3ce563e16486c3.tar forums-dbc164e13188a8adf4478c1b4b3ce563e16486c3.tar.gz forums-dbc164e13188a8adf4478c1b4b3ce563e16486c3.tar.bz2 forums-dbc164e13188a8adf4478c1b4b3ce563e16486c3.tar.xz forums-dbc164e13188a8adf4478c1b4b3ce563e16486c3.zip |
[ticket/16260] Missing check whether the index exists in ACP - PHP 7.4
PHPBB3-16260
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_board.php | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php index 2285ac997e..cd72a8748a 100644 --- a/phpBB/includes/acp/acp_board.php +++ b/phpBB/includes/acp/acp_board.php @@ -530,17 +530,14 @@ class acp_board if ($submit) { - if (isset($data['type'])) + if (isset($data['type']) && strpos($data['type'], 'password') === 0 && $config_value === '********') { - 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 - */ - continue; - } + /** + * 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 + */ + continue; } $config->set($config_name, $config_value); |