From 380539cebd3289dd000b86fd328cfeb45e8d8602 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 9 Jan 2006 13:19:53 +0100 Subject: [PATCH] small OPML fix (closes #32) --- opml.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/opml.php b/opml.php index b0107e42..23a28277 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')); -- 2.39.5