From 16fdac16c0bc21a6c3acac50faf2851ab63441d7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 28 Dec 2009 19:30:34 +0300 Subject: add archive_article() --- modules/backend-rpc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 326c669fb..7374241ca 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -120,11 +120,11 @@ } if ($subop == "archive") { - $ids = db_escape_string($_GET["ids"]); + $ids = split(",", db_escape_string($_GET["ids"])); - $result = db_query($link, "UPDATE ttrss_user_entries - SET orig_feed_id = feed_id, feed_id = NULL, marked = true - WHERE ref_id IN ($ids) AND owner_uid = " . $_SESSION["uid"]); + foreach ($ids as $id) { + archive_article($link, $id, $_SESSION["uid"]); + } print ""; getGlobalCounters($link); -- cgit v1.2.3