]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_generic_feed: fix category processing
authorAndrew Dolgov <fox@madoka.spb.ru>
Sat, 1 Sep 2007 04:51:25 +0000 (05:51 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Sat, 1 Sep 2007 04:51:25 +0000 (05:51 +0100)
functions.php

index a9b0eeec060a6b80de63a717f612f744b520e0d1..131dc0db1d05c9f6c8298f2aa1a0306aae33e75a 100644 (file)
                                        $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 {