aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author3D-I <480857+3D-I@users.noreply.github.com>2019-12-24 21:51:00 +0100
committer3D-I <480857+3D-I@users.noreply.github.com>2019-12-24 21:51:15 +0100
commit044d3278188b53243d78d9de6095f2bfffdb17a2 (patch)
treec132665f08c2e3df58beed10f97254e63f091cc6
parentcc9b29488f539756d2f1fa85ce964d75c1fbec72 (diff)
downloadforums-044d3278188b53243d78d9de6095f2bfffdb17a2.tar
forums-044d3278188b53243d78d9de6095f2bfffdb17a2.tar.gz
forums-044d3278188b53243d78d9de6095f2bfffdb17a2.tar.bz2
forums-044d3278188b53243d78d9de6095f2bfffdb17a2.tar.xz
forums-044d3278188b53243d78d9de6095f2bfffdb17a2.zip
[ticket/16267] Check whether the index exists in ACP BBcodes - PHP 7.4
PHPBB3-16267
-rw-r--r--phpBB/includes/acp/acp_bbcodes.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php
index 84dbbf02ba..275188c5a1 100644
--- a/phpBB/includes/acp/acp_bbcodes.php
+++ b/phpBB/includes/acp/acp_bbcodes.php
@@ -207,7 +207,11 @@ class acp_bbcodes
$db->sql_freeresult($result);
// Grab the end, interrogate the last closing tag
- if ($info['test'] === '1' || in_array(strtolower($data['bbcode_tag']), $hard_coded) || (preg_match('#\[/([^[]*)]$#', $bbcode_match, $regs) && in_array(strtolower($regs[1]), $hard_coded)))
+ if (
+ isset($info['test']) && $info['test'] === '1'
+ || in_array(strtolower($data['bbcode_tag']), $hard_coded)
+ || (preg_match('#\[/([^[]*)]$#', $bbcode_match, $regs) && in_array(strtolower($regs[1]), $hard_coded))
+ )
{
trigger_error($user->lang['BBCODE_INVALID_TAG_NAME'] . adm_back_link($this->u_action), E_USER_WARNING);
}