aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_pm_reports.php
diff options
context:
space:
mode:
authorrechosen <rechosen@gmail.com>2013-09-04 13:37:39 +0200
committerrechosen <rechosen@gmail.com>2013-09-04 13:37:39 +0200
commit77845e366e8a5578ad740186cf71d75be32694bc (patch)
treeae10b687c70b5f1a01fbf8429650094a4f8ad179 /phpBB/includes/mcp/mcp_pm_reports.php
parentf446afa06b3642a24a548699b69c5b7bc4a35edb (diff)
downloadforums-77845e366e8a5578ad740186cf71d75be32694bc.tar
forums-77845e366e8a5578ad740186cf71d75be32694bc.tar.gz
forums-77845e366e8a5578ad740186cf71d75be32694bc.tar.bz2
forums-77845e366e8a5578ad740186cf71d75be32694bc.tar.xz
forums-77845e366e8a5578ad740186cf71d75be32694bc.zip
[ticket/11829] Use report_closed to determine status in MCP report_details
Instead of using post_reported of the post or message_reported of the pm, use report_closed of the report itself to reliably determine whether this particular report is closed or not in the report_details view of the MCP. This fixes a bug where the report_details view would not show that the report shown was closed and display a "Close report" button that had no effect. PHPBB3-11829
Diffstat (limited to 'phpBB/includes/mcp/mcp_pm_reports.php')
-rw-r--r--phpBB/includes/mcp/mcp_pm_reports.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_pm_reports.php b/phpBB/includes/mcp/mcp_pm_reports.php
index 77bc7680e6..0a33c80a90 100644
--- a/phpBB/includes/mcp/mcp_pm_reports.php
+++ b/phpBB/includes/mcp/mcp_pm_reports.php
@@ -166,6 +166,7 @@ class mcp_pm_reports
'S_CLOSE_ACTION' => append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=pm_reports&amp;mode=pm_report_details&amp;r=' . $report_id),
'S_CAN_VIEWIP' => $auth->acl_getf_global('m_info'),
'S_POST_REPORTED' => $pm_info['message_reported'],
+ 'S_REPORT_CLOSED' => $report['report_closed'],
'S_USER_NOTES' => true,
'U_MCP_REPORT' => append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=pm_reports&amp;mode=pm_report_details&amp;r=' . $report_id),