aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author3D-I <480857+3D-I@users.noreply.github.com>2019-12-22 17:44:03 +0100
committer3D-I <480857+3D-I@users.noreply.github.com>2019-12-22 17:44:17 +0100
commit16a163662bf463d7fa2195e73832e8bf4a26a06f (patch)
tree7641452e2e681a7f8093dcbdbc29cfa55d716970
parentffb0adfc59934dd6012394855f494872276b61b9 (diff)
downloadforums-16a163662bf463d7fa2195e73832e8bf4a26a06f.tar
forums-16a163662bf463d7fa2195e73832e8bf4a26a06f.tar.gz
forums-16a163662bf463d7fa2195e73832e8bf4a26a06f.tar.bz2
forums-16a163662bf463d7fa2195e73832e8bf4a26a06f.tar.xz
forums-16a163662bf463d7fa2195e73832e8bf4a26a06f.zip
[ticket/16260] Missing check whether the index exists in ACP - PHP 7.4
PHPBB3-16260
-rw-r--r--phpBB/includes/acp/acp_board.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php
index b0cefbd064..2285ac997e 100644
--- a/phpBB/includes/acp/acp_board.php
+++ b/phpBB/includes/acp/acp_board.php
@@ -530,15 +530,19 @@ class acp_board
if ($submit)
{
- if (strpos(isset($data['type']) ? $data['type'] : '', 'password') === 0 && $config_value === '********')
+ if (isset($data['type']))
{
- /**
- * 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;
+ 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;
+ }
}
+
$config->set($config_name, $config_value);
if ($config_name == 'allow_quick_reply' && isset($_POST['allow_quick_reply_enable']))