phpBB

Code Changes

File: includes/mcp/mcp_pm_reports.php

  Unmodified   Added   Modified   Removed
Line 55Line 55

$report_id_list = $request->variable('report_id_list', array(0));



$report_id_list = $request->variable('report_id_list', array(0));


				if (!sizeof($report_id_list))

				if (!count($report_id_list))

				{
trigger_error('NO_REPORT_SELECTED');
}

				{
trigger_error('NO_REPORT_SELECTED');
}

Line 104Line 104

$pm_info = phpbb_get_pm_data(array($pm_id));



$pm_info = phpbb_get_pm_data(array($pm_id));


				if (!sizeof($pm_info))

				if (!count($pm_info))

				{
trigger_error('NO_REPORT_SELECTED');
}

				{
trigger_error('NO_REPORT_SELECTED');
}

Line 141Line 141
					}
$db->sql_freeresult($result);


					}
$db->sql_freeresult($result);


					if (sizeof($attachments))

					if (count($attachments))

					{
$update_count = array();
parse_attachments(0, $message, $attachments, $update_count);

					{
$update_count = array();
parse_attachments(0, $message, $attachments, $update_count);

Line 251Line 251
				}
$db->sql_freeresult($result);


				}
$db->sql_freeresult($result);


				if (sizeof($report_ids))

				if (count($report_ids))

				{
$sql = 'SELECT p.*, u.username, u.username_clean, u.user_colour, r.user_id as reporter_id, ru.username as reporter_name, ru.user_colour as reporter_colour, r.report_time, r.report_id
FROM ' . REPORTS_TABLE . ' r, ' . PRIVMSGS_TABLE . ' p, ' . USERS_TABLE . ' u, ' . USERS_TABLE . ' ru

				{
$sql = 'SELECT p.*, u.username, u.username_clean, u.user_colour, r.user_id as reporter_id, ru.username as reporter_name, ru.user_colour as reporter_colour, r.report_time, r.report_id
FROM ' . REPORTS_TABLE . ' r, ' . PRIVMSGS_TABLE . ' p, ' . USERS_TABLE . ' u, ' . USERS_TABLE . ' ru

Line 270Line 270
					}
$db->sql_freeresult($result);


					}
$db->sql_freeresult($result);


					if (sizeof($pm_list))

					if (count($pm_list))

					{
$address_list = get_recipient_strings($pm_by_id);


					{
$address_list = get_recipient_strings($pm_by_id);