mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-27 12:49:14 +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
|
// 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…
Add table
Reference in a new issue