From 1f05c923762a7f395cbb9c63121445f0e688a076 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 19 Jul 2023 23:40:28 +0200 Subject: Fix enclosures in RSS output (#5540) * Fix enclosures in RSS output fix https://github.com/FreshRSS/FreshRSS/issues/5539 * another iterable * Forgotten iterable --- app/views/index/rss.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/index') diff --git a/app/views/index/rss.phtml b/app/views/index/rss.phtml index 0b3dc7955..f9c9d9297 100755 --- a/app/views/index/rss.phtml +++ b/app/views/index/rss.phtml @@ -48,7 +48,7 @@ foreach ($this->entries as $item) { . '" />', "\n"; } $enclosures = $item->enclosures(false); - if (is_array($enclosures)) { + if (is_iterable($enclosures)) { foreach ($enclosures as $enclosure) { // https://www.rssboard.org/media-rss echo "\t\t\t", '