summaryrefslogtreecommitdiff
path: root/opml.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-01-09 13:19:53 +0100
committerAndrew Dolgov <[email protected]>2006-01-09 13:19:53 +0100
commit380539cebd3289dd000b86fd328cfeb45e8d8602 (patch)
treedea68a887617eadaf69e76e54585d7d64b4ae212 /opml.php
parentf18d0d94b41a9859e6f3aa76fcded0d654269e5b (diff)
small OPML fix (closes #32)
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'));