phpBB

Code Changes

File: includes/mcp/mcp_reports.php

  Unmodified   Added   Modified   Removed
Line 336Line 336
			case 'reports':
case 'reports_closed':
$topic_id = $request->variable('t', 0);

			case 'reports':
case 'reports_closed':
$topic_id = $request->variable('t', 0);

 

if ($request->is_set_post('t'))
{
$topic_id = $request->variable('t', 0, false, \phpbb\request\request_interface::POST);
}


$forum_info = array();
$forum_list_reports = get_forum_list('m_report', false, true);


$forum_info = array();
$forum_list_reports = get_forum_list('m_report', false, true);

Line 412Line 417
				$forum_options = '<option value="0"' . (($forum_id == 0) ? ' selected="selected"' : '') . '>' . $user->lang['ALL_FORUMS'] . '</option>';
foreach ($forum_list_reports as $row)
{

				$forum_options = '<option value="0"' . (($forum_id == 0) ? ' selected="selected"' : '') . '>' . $user->lang['ALL_FORUMS'] . '</option>';
foreach ($forum_list_reports as $row)
{

					$forum_options .= '<option value="' . $row['forum_id'] . '"' . (($forum_id == $row['forum_id']) ? ' selected="selected"' : '') . '>' . str_repeat('&nbsp; &nbsp;', $row['padding']) . $row['forum_name'] . '</option>';

					$forum_options .= '<option value="' . $row['forum_id'] . '"' . (($forum_id == $row['forum_id']) ? ' selected="selected"' : '') . '>' . str_repeat('&nbsp; &nbsp;', $row['padding']) . truncate_string($row['forum_name'], 30, 255, false, $user->lang('ELLIPSIS')) . '</option>';

					$forum_data[$row['forum_id']] = $row;
}
unset($forum_list_reports);

					$forum_data[$row['forum_id']] = $row;
}
unset($forum_list_reports);