]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove_feed: properly save orig_feed_id when moving articles to archive
authorAndrew Dolgov <fox@bah.org.ru>
Mon, 11 Jan 2010 11:51:05 +0000 (14:51 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Mon, 11 Jan 2010 11:51:05 +0000 (14:51 +0300)
functions.php

index 7943adef2e90a4686b15d8da1d49acc2ce93eac7..ec55467b9c9cf4bf278349fd4963804985def306 100644 (file)
                                WHERE id = '$id'");
                        }
 
-                       db_query($link, "UPDATE ttrss_user_entries SET feed_id = NULL 
-                               WHERE feed_id = '$id' AND 
+                       db_query($link, "UPDATE ttrss_user_entries SET feed_id = NULL,
+                               orig_feed_id = '$id' WHERE feed_id = '$id' AND 
                                        marked = true AND owner_uid = $owner_uid");
 
                        /* remove the feed */