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) {
|
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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue