mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 03:16:33 +03:00
fix: php error PHP Notice: Undefined index: author (#3002)
This commit is contained in:
parent
5e09a14acc
commit
9d16e81e17
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue