diff options
| author | 2016-03-06 17:04:21 +0100 | |
|---|---|---|
| committer | 2016-03-06 17:04:21 +0100 | |
| commit | 9d1f35d4b859a44964e52a377e8718113e160862 (patch) | |
| tree | 82afdb52183d8a35d5b138b5a6e5c5f35717cd7c /lib/lib_opml.php | |
| parent | 2daf988f08a938b706ff123f22435548cba68b7c (diff) | |
OPML bug import not using title
Fix https://github.com/FreshRSS/FreshRSS/issues/1048
Diffstat (limited to 'lib/lib_opml.php')
| -rw-r--r-- | lib/lib_opml.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/lib_opml.php b/lib/lib_opml.php index 02ae5f55c..66b854313 100644 --- a/lib/lib_opml.php +++ b/lib/lib_opml.php @@ -105,6 +105,10 @@ function libopml_parse_outline($outline_xml, $strict = true) { ); } + if (empty($outline['text']) && isset($outline['title'])) { + $outline['text'] = $outline['title']; + } + foreach ($outline_xml->children() as $key => $value) { // An outline may contain any number of outline children if ($key === 'outline') { |
