[FeedExpander] Fix PHP notice on missing uri field

(guid is valid uri AND item uri is not valid)
 => (guid is valid uri AND item uri is empty or not valid)
This commit is contained in:
ORelio 2020-03-25 21:16:40 +01:00
parent 062dd7f8a5
commit 8144488a9e

View file

@ -346,7 +346,7 @@ abstract class FeedExpander extends BridgeAbstract {
if($attribute === 'isPermaLink'
&& ($value === 'true' || (
filter_var($feedItem->guid, FILTER_VALIDATE_URL)
&& !filter_var($item['uri'], FILTER_VALIDATE_URL)
&& (empty($item['uri']) || !filter_var($item['uri'], FILTER_VALIDATE_URL))
)
)
) {