mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00: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
|
// Retrieve fields to check
|
||||||
$filter_fields = [];
|
$filter_fields = [];
|
||||||
if ($this->getInput('target_title')) {
|
if ($this->getInput('target_title')) {
|
||||||
$filter_fields[] = $item['title'];
|
$filter_fields[] = $item['title'] ?? null;
|
||||||
}
|
}
|
||||||
if ($this->getInput('target_content')) {
|
if ($this->getInput('target_content')) {
|
||||||
$filter_fields[] = $item['content'];
|
$filter_fields[] = $item['content'] ?? null;
|
||||||
}
|
}
|
||||||
if ($this->getInput('target_author')) {
|
if ($this->getInput('target_author')) {
|
||||||
$filter_fields[] = $item['author'];
|
$filter_fields[] = $item['author'] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply filter on item
|
// Apply filter on item
|
||||||
|
Loading…
Reference in New Issue
Block a user