From 5c563acde0aaf711ecde3755ab3dfb0d94373d1f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 21 Dec 2005 18:59:19 +0100 Subject: [PATCH] update feeds by last_updated DESC --- functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index b54789fa..80fed8e3 100644 --- a/functions.php +++ b/functions.php @@ -102,7 +102,8 @@ $result = db_query($link, "SELECT feed_url,id, substring(last_updated,1,19) as last_updated, - update_interval FROM ttrss_feeds WHERE owner_uid = '$user_id'"); + update_interval FROM ttrss_feeds WHERE owner_uid = '$user_id' + ORDER BY last_updated DESC"); while ($line = db_fetch_assoc($result)) { $upd_intl = $line["update_interval"]; -- 2.39.5