From 571dad821884ddd391eca4bf551bb7b604f0e322 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 1 Sep 2007 05:51:25 +0100 Subject: [PATCH] update_generic_feed: fix category processing --- functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index a9b0eeec..131dc0db 100644 --- a/functions.php +++ b/functions.php @@ -1907,12 +1907,13 @@ $cat_qpart = "cat_id IS NULL"; } - $tmp_result = db_query($link, "SELECT feed_url FROM ttrss_feeds + $tmp_result = db_query($link, "SELECT id,feed_url FROM ttrss_feeds WHERE $cat_qpart AND owner_uid = " . $_SESSION["uid"]); while ($tmp_line = db_fetch_assoc($tmp_result)) { $feed_url = $tmp_line["feed_url"]; - update_rss_feed($link, $feed_url, $feed, ENABLE_UPDATE_DAEMON); + $feed_id = $tmp_line["id"]; + update_rss_feed($link, $feed_url, $feed_id, ENABLE_UPDATE_DAEMON); } } else { -- 2.39.2