Browse Source

! Don't let the prune reports function prune open, or for that matter, ignored, reports.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 years ago
parent
commit
d5871e4dd0
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Sources/ScheduledTasks.php

+ 5 - 1
Sources/ScheduledTasks.php

@@ -1489,9 +1489,13 @@ function scheduled_weekly_maintenance()
 			$result = $smcFunc['db_query']('', '
 				SELECT id_report
 				FROM {db_prefix}log_reported
-				WHERE time_started < {int:time_started}',
+				WHERE time_started < {int:time_started}
+					AND closed = {int:not_closed}
+					AND ignore_all = {int:not_ignored}',
 				array(
 					'time_started' => $t,
+					'not_closed' => 0,
+					'not_ignored' => 0,
 				)
 			);