Skip to content

Commit

Permalink
[ticket/17107] Fix PHP warning on legend output
Browse files Browse the repository at this point in the history
This is a side issue revealed with the newly added viewonline functional test.
In current master branch group legend is being dumped to template with the
group helper->display_legend() method so plain LEGEND output is a leftover.

PHPBB3-17107
  • Loading branch information
rxu committed Jun 14, 2023
1 parent 7f3f2e0 commit 39282c9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion phpBB/viewonline.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,6 @@
$template->assign_vars(array(
'TOTAL_REGISTERED_USERS_ONLINE' => $user->lang('REG_USERS_ONLINE', (int) $logged_visible_online, $user->lang('HIDDEN_USERS_ONLINE', (int) $logged_hidden_online)),
'TOTAL_GUEST_USERS_ONLINE' => $user->lang('GUEST_USERS_ONLINE', (int) $guest_counter),
'LEGEND' => $legend,

'U_SORT_USERNAME' => append_sid("{$phpbb_root_path}viewonline.$phpEx", 'sk=a&sd=' . (($sort_key == 'a' && $sort_dir == 'a') ? 'd' : 'a') . '&sg=' . ((int) $show_guests)),
'U_SORT_UPDATED' => append_sid("{$phpbb_root_path}viewonline.$phpEx", 'sk=b&sd=' . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a') . '&sg=' . ((int) $show_guests)),
Expand Down

0 comments on commit 39282c9

Please sign in to comment.