aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_reports.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-04-24 16:55:56 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-04-24 16:55:56 +0000
commit7730930373e62d5cfb9326025b9955cd6dd00a7e (patch)
tree8601d74d227b3c44014d2dbfc7dd602f32a16ff7 /phpBB/includes/mcp/mcp_reports.php
parentbb2dfe7f36094664a1122495a2de7b4f6950ae3b (diff)
downloadforums-7730930373e62d5cfb9326025b9955cd6dd00a7e.tar
forums-7730930373e62d5cfb9326025b9955cd6dd00a7e.tar.gz
forums-7730930373e62d5cfb9326025b9955cd6dd00a7e.tar.bz2
forums-7730930373e62d5cfb9326025b9955cd6dd00a7e.tar.xz
forums-7730930373e62d5cfb9326025b9955cd6dd00a7e.zip
erm, please everyone slap me for this... :/ Nils, your turn. ;)
git-svn-id: file:///svn/phpbb/trunk@7395 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_reports.php')
-rwxr-xr-xphpBB/includes/mcp/mcp_reports.php7
1 files changed, 1 insertions, 6 deletions
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'];