From: Andrew Dolgov Date: Fri, 25 Nov 2005 13:30:34 +0000 (+0100) Subject: fix OPML export for uncategorized feeds X-Git-Tag: schema_feature_freeze_for_1.1~96 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=18d37445a33ea01d099ef4d09840f0351f593ee8;p=tt-rss.git fix OPML export for uncategorized feeds --- diff --git a/opml.php b/opml.php index 9f76797b..63f64a67 100644 --- a/opml.php +++ b/opml.php @@ -35,11 +35,9 @@ $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");