diff options
| author | 2023-07-19 23:40:28 +0200 | |
|---|---|---|
| committer | 2023-07-19 23:40:28 +0200 | |
| commit | 1f05c923762a7f395cbb9c63121445f0e688a076 (patch) | |
| tree | e2e822960f0655f320a7866980e5d731b49a5591 /app/views/index | |
| parent | c35a9ee061a31b5d4b19e63bbe9882a7ecdcb053 (diff) | |
Fix enclosures in RSS output (#5540)
* Fix enclosures in RSS output
fix https://github.com/FreshRSS/FreshRSS/issues/5539
* another iterable
* Forgotten iterable
Diffstat (limited to 'app/views/index')
| -rwxr-xr-x | app/views/index/rss.phtml | 2 |
1 files changed, 1 insertions, 1 deletions
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", '<media:content url="' . $enclosure['url'] |
