]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix OPML export for uncategorized feeds
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 25 Nov 2005 13:30:34 +0000 (14:30 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 25 Nov 2005 13:30:34 +0000 (14:30 +0100)
opml.php

index 9f76797b63ccb40ee1a1e1277b93dba5012f3685..63f64a670f02abca950fcbceedc1ac7665b44eb5 100644 (file)
--- a/opml.php
+++ b/opml.php
                        $result = db_query($link, "SELECT 
                                        ttrss_feeds.feed_url AS feed_url,
                                        ttrss_feeds.title AS title,
-                                       ttrss_feed_categories.title AS cat_title
-                               FROM ttrss_feeds,ttrss_feed_categories 
-                               WHERE
-                                       cat_id = ttrss_feed_categories.id
-                               ORDER BY ttrss_feed_categories.title,ttrss_feeds.title");
+                                       (SELECT title FROM ttrss_feed_categories WHERE id = cat_id) as cat_title
+                                       FROM ttrss_feeds
+                               ORDER BY cat_title,title");
                } else {
                        $result = db_query($link, "SELECT * FROM ttrss_feeds 
                                ORDER BY title");