Skip to content

Commit

Permalink
Merge pull request #6135 from 3D-I/ticket/16696
Browse files Browse the repository at this point in the history
[ticket/16696] Fix unsupported operand types in viewforum - PHP8
  • Loading branch information
marc1706 committed Feb 5, 2021
2 parents 1ee1dbb + 6c15f72 commit bb8768b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpBB/viewforum.php
Expand Up @@ -1027,7 +1027,7 @@

$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;

Expand Down

0 comments on commit bb8768b

Please sign in to comment.