1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-14 04:42:04 +02:00

Merge pull request #6135 from 3D-I/ticket/16696

[ticket/16696] Fix unsupported operand types in viewforum - PHP8
This commit is contained in:
Marc Alexander 2021-02-05 22:17:45 +01:00
commit bb8768b604
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

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