summaryrefslogtreecommitdiff
path: root/opml.php
diff options
context:
space:
mode:
Diffstat (limited to 'opml.php')
-rw-r--r--opml.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/opml.php b/opml.php
index b0107e428..23a282776 100644
--- a/opml.php
+++ b/opml.php
@@ -132,8 +132,13 @@
if (!$feed_title) {
$feed_title = db_escape_string($outline->get_attribute('title'));
}
-
+
$cat_title = db_escape_string($outline->get_attribute('title'));
+
+ if (!$cat_title) {
+ $cat_title = db_escape_string($outline->get_attribute('text'));
+ }
+
$feed_url = db_escape_string($outline->get_attribute('xmlUrl'));
$site_url = db_escape_string($outline->get_attribute('htmlUrl'));