From 7730930373e62d5cfb9326025b9955cd6dd00a7e Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 24 Apr 2007 16:55:56 +0000 Subject: erm, please everyone slap me for this... :/ Nils, your turn. ;) git-svn-id: file:///svn/phpbb/trunk@7395 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/mcp/mcp_reports.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'phpBB/includes/mcp/mcp_reports.php') diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php index c3c39d22fe..5a50190848 100755 --- a/phpBB/includes/mcp/mcp_reports.php +++ b/phpBB/includes/mcp/mcp_reports.php @@ -66,7 +66,7 @@ class mcp_reports $sql = 'SELECT r.post_id, r.user_id, r.report_id, r.report_closed, report_time, r.report_text, rr.reason_title, rr.reason_description, u.username, u.username_clean, u.user_colour FROM ' . REPORTS_TABLE . ' r, ' . REPORTS_REASONS_TABLE . ' rr, ' . USERS_TABLE . ' u - WHERE ' . (($report_id) ? 'r.report_id = ' . $report_id : "r.post_id = $post_id") . ' + WHERE ' . (($report_id) ? 'r.report_id = ' . $report_id : "r.post_id = $post_id AND r.report_closed = 0") . ' AND rr.reason_id = r.reason_id AND r.user_id = u.user_id'; $result = $db->sql_query($sql); @@ -78,11 +78,6 @@ class mcp_reports trigger_error('NO_REPORT'); } - if ($report_id && $report['report_closed']) - { - trigger_error('REPORT_CLOSED'); - } - $post_id = $report['post_id']; $report_id = $report['report_id']; -- cgit v1.2.1