fix: php error PHP Notice: Undefined index: author (#3002)

This commit is contained in:
Dag 2022-09-04 19:07:04 +02:00 committed by GitHub
parent 5e09a14acc
commit 9d16e81e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -91,13 +91,13 @@ class FilterBridge extends FeedExpander
// Retrieve fields to check
$filter_fields = [];
if ($this->getInput('target_title')) {
$filter_fields[] = $item['title'];
$filter_fields[] = $item['title'] ?? null;
}
if ($this->getInput('target_content')) {
$filter_fields[] = $item['content'];
$filter_fields[] = $item['content'] ?? null;
}
if ($this->getInput('target_author')) {
$filter_fields[] = $item['author'];
$filter_fields[] = $item['author'] ?? null;
}
// Apply filter on item