From 342f56b9d14b9328d85831b4a9cc1b57c6c991e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Sat, 5 Jul 2014 16:10:58 -0300 Subject: [PATCH] Add fix for the RadioFrance podcast and ignore a php warning --- vendor/PicoFeed/Clients/Stream.php | 2 +- vendor/PicoFeed/Parsers/Rss20.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {