mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
fix: php error PHP Notice: Undefined index: author (#3002)
This commit is contained in:
parent
5e09a14acc
commit
9d16e81e17
@ -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…
x
Reference in New Issue
Block a user