Browse Source

A typo :(
and force a redirect

Signed-off-by: Suki <[email protected]>

Suki 11 years ago
parent
commit
523610d68f
2 changed files with 4 additions and 1 deletions
  1. 3 0
      Sources/ReportedPosts.php
  2. 1 1
      Sources/Subs-ReportedPosts.php

+ 3 - 0
Sources/ReportedPosts.php

@@ -119,6 +119,9 @@ function ShowReports()
 
 		if (!empty($toClose))
 			updateReport('closed', 1, $toClose);
+
+		// Force a page refresh.
+		redirectexit($scripturl . '?action=moderate;area=reports');
 	}
 
 	// Show a confirmation if the user wants to disregard a report.

+ 1 - 1
Sources/Subs-ReportedPosts.php

@@ -68,7 +68,7 @@ function updateReport($action, $value, $report_id)
 		$extra[$row['id_report']] = array(
 			'report' => $row['id_report'],
 			'board' => $row['id_board'],
-			'message' => $row['id_message'],
+			'message' => $row['id_msg'],
 			'topic' => $row['id_topic'],
 		);