]> git.wh0rd.org Git - tt-rss.git/commitdiff
small OPML fix (closes #32)
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 9 Jan 2006 12:19:53 +0000 (13:19 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 9 Jan 2006 12:19:53 +0000 (13:19 +0100)
opml.php

index b0107e428837f93e2ed29b033358c269612ac18e..23a28277662d892ab45489a5def559eef1702bba 100644 (file)
--- a/opml.php
+++ b/opml.php
                                                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'));