From 6c15f723711d18d7d40ea774538452dec75b8be4 Mon Sep 17 00:00:00 2001 From: 3D-I <480857+3D-I@users.noreply.github.com> Date: Tue, 2 Feb 2021 21:19:48 +0100 Subject: [PATCH] [ticket/16696] Unsupported operand types in viewforum.php - PHP8 PHPBB3-16696 --- phpBB/viewforum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index fbb4ebd299..41a51b1fe4 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -1027,7 +1027,7 @@ if (count($topic_list)) $template->assign_block_vars('topicrow', $topic_row); - $pagination->generate_template_pagination($topic_row['U_VIEW_TOPIC'], 'topicrow.pagination', 'start', $topic_row['REPLIES'] + 1, $config['posts_per_page'], 1, true, true); + $pagination->generate_template_pagination($topic_row['U_VIEW_TOPIC'], 'topicrow.pagination', 'start', (int) $topic_row['REPLIES'] + 1, $config['posts_per_page'], 1, true, true); $s_type_switch = ($row['topic_type'] == POST_ANNOUNCE || $row['topic_type'] == POST_GLOBAL) ? 1 : 0;