diff --git a/vendor/PicoFeed/Clients/Stream.php b/vendor/PicoFeed/Clients/Stream.php index 5da7e11..af5ae7e 100644 --- a/vendor/PicoFeed/Clients/Stream.php +++ b/vendor/PicoFeed/Clients/Stream.php @@ -92,7 +92,7 @@ class Stream extends Client } if (isset($headers['Content-Encoding']) && $headers['Content-Encoding'] === 'gzip') { - $body = gzdecode($body); + $body = @gzdecode($body); } return array( diff --git a/vendor/PicoFeed/Parsers/Rss20.php b/vendor/PicoFeed/Parsers/Rss20.php index 3006cfa..bbd8b75 100644 --- a/vendor/PicoFeed/Parsers/Rss20.php +++ b/vendor/PicoFeed/Parsers/Rss20.php @@ -227,7 +227,7 @@ class Rss20 extends Parser $feed_permalink = $feed->url; } - if ($entry->guid->count() > 0 && (string) $entry->guid['isPermaLink'] === 'false') { + if ($entry->guid->count() > 0 && ((string) $entry->guid['isPermaLink'] === 'false' || ! isset($entry->guid['isPermaLink']))) { $item->id = $this->generateId($item_permalink, $feed_permalink, (string) $entry->guid); } else {