diff options
| author | 2023-08-03 21:57:00 +0200 | |
|---|---|---|
| committer | 2023-08-03 21:57:00 +0200 | |
| commit | c49c29a561e73d791c7ea1df84c661e052b46781 (patch) | |
| tree | 496033c62cd6543e091f01cac2442d1c1616814e | |
| parent | 4039f6c9a4bc1636d298d0c05c678f4e1215e846 (diff) | |
OPML export fix empty attributes (#5559)
Fix:
> Deprecated: DOMElement::setAttributeNS(): Passing null to parameter #3 ($value) of type string is deprecated in /var/www/FreshRSS/lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php on line 680
| -rw-r--r-- | app/views/helpers/export/opml.phtml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/helpers/export/opml.phtml b/app/views/helpers/export/opml.phtml index 5acdff374..8b067b8ff 100644 --- a/app/views/helpers/export/opml.phtml +++ b/app/views/helpers/export/opml.phtml @@ -59,6 +59,9 @@ function feedsToOutlines(array $feeds, bool $excludeMutedFeeds = false): array { $outline['frss:cssFullContentFilter'] = $feed->attributes('path_entries_filter'); } + // Remove null attributes + $outline = array_filter($outline, static function (?string $value) { return $value !== null; }); + $outlines[] = $outline; } |
