aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-01-29 11:05:45 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-01-01 18:54:08 +0100
commit66143e99bee0931b77c50d9e3b1fbd0b9629e48d (patch)
treeafac0e0f0aae352ee16329803e770c66a2381b2c /phpBB
parent4a2e203a80a4ab8f7983b8b203de38b37bd8764c (diff)
downloadforums-66143e99bee0931b77c50d9e3b1fbd0b9629e48d.tar
forums-66143e99bee0931b77c50d9e3b1fbd0b9629e48d.tar.gz
forums-66143e99bee0931b77c50d9e3b1fbd0b9629e48d.tar.bz2
forums-66143e99bee0931b77c50d9e3b1fbd0b9629e48d.tar.xz
forums-66143e99bee0931b77c50d9e3b1fbd0b9629e48d.zip
[ticket/15055] Further fixes to ensure PHP 7.1 & mssql compatibility
PHPBB3-15055
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/acp/acp_bbcodes.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php
index 18d574081a..e9d96bdecc 100644
--- a/phpBB/includes/acp/acp_bbcodes.php
+++ b/phpBB/includes/acp/acp_bbcodes.php
@@ -253,7 +253,7 @@ class acp_bbcodes
if ($row)
{
- $bbcode_id = $row['max_bbcode_id'] + 1;
+ $bbcode_id = (int) $row['max_bbcode_id'] + 1;
// Make sure it is greater than the core bbcode ids...
if ($bbcode_id <= NUM_CORE_BBCODES)
# Shut up misguided -w warnings about "used only once": use vars @::param_desc, @::param_list; confirm_login(); print "Content-type: text/html\n\n"; if (!UserInGroup("tweakparams")) { print "<H1>Sorry, you aren't a member of the 'tweakparams' group.</H1>\n"; print "And so, you aren't allowed to edit the parameters.\n"; exit; } PutHeader("Edit parameters"); print "This lets you edit the basic operating parameters of bugzilla.\n"; print "Be careful!\n"; print "<p>\n"; print "Any item you check Reset on will get reset to its default value.\n"; print "<form method=post action=doeditparams.cgi><table>\n"; my $rowbreak = "<tr><td colspan=2><hr></td></tr>"; print $rowbreak; foreach my $i (@::param_list) { print "<tr><th align=right valign=top>$i:</th><td>$::param_desc{$i}</td></tr>\n"; print "<tr><td valign=top><input type=checkbox name=reset-$i>Reset</td><td>\n"; my $value = Param($i); SWITCH: for ($::param_type{$i}) { /^t$/ && do { print "<input size=80 name=$i value=\"" . value_quote($value) . "\">\n"; last SWITCH; }; /^l$/ && do { print "<textarea wrap=hard name=$i rows=10 cols=80>" .