From c565e1ef9ec14e2383db4acceb5e5ffcebae66de Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 20 Nov 2005 11:42:57 +0100 Subject: [PATCH] feed details now actually shows latest headlines, not first ones --- backend.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend.php b/backend.php index da97e097..22fc434b 100644 --- a/backend.php +++ b/backend.php @@ -2221,10 +2221,10 @@ print ""; - $result = db_query($link, "SELECT title,updated + $result = db_query($link, "SELECT title,updated,unread FROM ttrss_entries,ttrss_user_entries WHERE ref_id = id AND feed_id = '$feed_id' - ORDER BY date_entered LIMIT 5"); + ORDER BY date_entered DESC LIMIT 5"); if (db_num_rows($result) > 0) { @@ -2233,6 +2233,9 @@ print "