remove_feed: properly save orig_feed_id when moving articles to archive

This commit is contained in:
Andrew Dolgov 2010-01-11 14:51:05 +03:00
parent 80db11136e
commit 74d22f0c30
1 changed files with 2 additions and 2 deletions

View File

@ -6358,8 +6358,8 @@
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 */