fix OPML export for uncategorized feeds

This commit is contained in:
Andrew Dolgov 2005-11-25 14:30:34 +01:00
parent e98a3f6525
commit 18d37445a3

View file

@ -35,11 +35,9 @@
$result = db_query($link, "SELECT $result = db_query($link, "SELECT
ttrss_feeds.feed_url AS feed_url, ttrss_feeds.feed_url AS feed_url,
ttrss_feeds.title AS title, ttrss_feeds.title AS title,
ttrss_feed_categories.title AS cat_title (SELECT title FROM ttrss_feed_categories WHERE id = cat_id) as cat_title
FROM ttrss_feeds,ttrss_feed_categories FROM ttrss_feeds
WHERE ORDER BY cat_title,title");
cat_id = ttrss_feed_categories.id
ORDER BY ttrss_feed_categories.title,ttrss_feeds.title");
} else { } else {
$result = db_query($link, "SELECT * FROM ttrss_feeds $result = db_query($link, "SELECT * FROM ttrss_feeds
ORDER BY title"); ORDER BY title");