Pārlūkot izejas kodu

make some small changes

Signed-off-by: Suki <[email protected]>
Suki 11 gadi atpakaļ
vecāks
revīzija
ed5e19cb84
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      Sources/Subs-ReportedPosts.php

+ 2 - 2
Sources/Subs-ReportedPosts.php

@@ -28,7 +28,7 @@ function updateReport($action, $value, $report_id)
 	global $smcFunc, $user_info, $context;
 
 	// Don't bother.
-	if (empty($action)|| empty($report_id) || $action != 'ignore' || $action != 'closed')
+	if (empty($action) || empty($report_id))
 		return false;
 
 	// Add the "_all" thingy.
@@ -38,7 +38,7 @@ function updateReport($action, $value, $report_id)
 	// Update the report...
 	$smcFunc['db_query']('', '
 		UPDATE {db_prefix}log_reported
-		SET  {string:action} = {int:value}
+		SET  {raw:action} = {string:value}
 		'. (is_array($report_id) ? 'WHERE id_report IN ({array_int:report_list})' : 'WHERE id_report = {int:id_report}') .'
 			AND ' . $user_info['mod_cache']['bq'],
 		array(