Skip to content

Commit

Permalink
[FeedExpander] Fix PHP notice on missing uri field
Browse files Browse the repository at this point in the history
(guid is valid uri AND item uri is not valid)
 => (guid is valid uri AND item uri is empty or not valid)
  • Loading branch information
ORelio committed Aug 11, 2020
1 parent 062dd7f commit 8144488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/FeedExpander.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ protected function parseRSS_2_0_Item($feedItem){
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))
)
)
) {
Expand Down

0 comments on commit 8144488

Please sign in to comment.