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,8 +88,10 @@ class ReportQueries {
if ($get_invalid) { if ($get_invalid) {
// Get the reports without a post. // Get the reports without a post.
$invalid = []; $invalid = [];
if (isset($report_posts[$report['board']][$report['post']])) { foreach ($raw_reports as $report) {
$invalid[] = $report; if (isset($report_posts[$report['board']][$report['post']])) {
$invalid[] = $report;
}
} }
return $invalid; return $invalid;
} else { } else {