forked from leftypol/leftypol
ReportQueries.php: fix filter for invalid reports
This commit is contained in:
parent
d3fdecfbb9
commit
5b231099b0
1 changed files with 4 additions and 2 deletions
|
@ -88,9 +88,11 @@ class ReportQueries {
|
|||
if ($get_invalid) {
|
||||
// Get the reports without a post.
|
||||
$invalid = [];
|
||||
foreach ($raw_reports as $report) {
|
||||
if (isset($report_posts[$report['board']][$report['post']])) {
|
||||
$invalid[] = $report;
|
||||
}
|
||||
}
|
||||
return $invalid;
|
||||
} else {
|
||||
// Filter out the reports without a valid post.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue