aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-12-27 15:06:01 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-12-27 15:06:01 +0100
commitc70d024f5f3b3bd3cc45e668c90b7cd90fde6424 (patch)
tree4c13250d752dd967135a4ad7bcdd1aed6ff18750
parent3ae799f4ded9201d8c07e8ee47b8dd386304d0e0 (diff)
parent5eae76b209aeab4728e2b1dc599079ae925f028a (diff)
downloadforums-c70d024f5f3b3bd3cc45e668c90b7cd90fde6424.tar
forums-c70d024f5f3b3bd3cc45e668c90b7cd90fde6424.tar.gz
forums-c70d024f5f3b3bd3cc45e668c90b7cd90fde6424.tar.bz2
forums-c70d024f5f3b3bd3cc45e668c90b7cd90fde6424.tar.xz
forums-c70d024f5f3b3bd3cc45e668c90b7cd90fde6424.zip
Merge pull request #5787 from 3D-I/ticket/16267
[ticket/16267] Check whether the index exists in ACP BBcodes - PHP 7.4
-rw-r--r--phpBB/includes/acp/acp_bbcodes.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php
index 84dbbf02ba..5e39055f50 100644
--- a/phpBB/includes/acp/acp_bbcodes.php
+++ b/phpBB/includes/acp/acp_bbcodes.php
@@ -207,7 +207,10 @@ 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);
}