summaryrefslogtreecommitdiff
path: root/opml.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-25 14:30:34 +0100
committerAndrew Dolgov <[email protected]>2005-11-25 14:30:34 +0100
commit18d37445a33ea01d099ef4d09840f0351f593ee8 (patch)
treeefd4a9f710d1232d09c490029dab9aed48553a6c /opml.php
parente98a3f6525a570913d1f957c12773cd1f1047aca (diff)
fix OPML export for uncategorized feeds
Diffstat (limited to 'opml.php')
-rw-r--r--opml.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/opml.php b/opml.php
index 9f76797b6..63f64a670 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");