ReportQueries.php: fix filter for invalid reports

This commit is contained in:
Zankaria 2024-12-11 16:33:49 +01:00
parent d3fdecfbb9
commit 5b231099b0

View file

@ -88,9 +88,11 @@ class ReportQueries {
if ($get_invalid) { if ($get_invalid) {
// Get the reports without a post. // Get the reports without a post.
$invalid = []; $invalid = [];
foreach ($raw_reports as $report) {
if (isset($report_posts[$report['board']][$report['post']])) { if (isset($report_posts[$report['board']][$report['post']])) {
$invalid[] = $report; $invalid[] = $report;
} }
}
return $invalid; return $invalid;
} else { } else {
// Filter out the reports without a valid post. // Filter out the reports without a valid post.