aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_opml.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-03-06 17:04:21 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-03-06 17:04:21 +0100
commit9d1f35d4b859a44964e52a377e8718113e160862 (patch)
tree82afdb52183d8a35d5b138b5a6e5c5f35717cd7c /lib/lib_opml.php
parent2daf988f08a938b706ff123f22435548cba68b7c (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.php4
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') {