From b018b49b2e765e02a7b64bf75c28b92cc9f5e962 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 19 Nov 2005 18:38:44 +0100 Subject: [PATCH] fix catchupAll call, rename catchupPage to catchupSelected and update it to new schema --- backend.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend.php b/backend.php index 4b9d3a7f3..a7fe0ff38 100644 --- a/backend.php +++ b/backend.php @@ -399,14 +399,14 @@ print ""; } - if ($subop == "catchupPage") { + if ($subop == "catchupSelected") { $ids = split(",", $_GET["ids"]); foreach ($ids as $id) { - db_query($link, "UPDATE ttrss_entries SET unread=false,last_read = NOW() - WHERE id = '$id'"); + db_query($link, "UPDATE ttrss_user_entries SET unread=false,last_read = NOW() + WHERE id = '$id' AND owner_uid = " . $_SESSION["uid"]); } @@ -445,7 +445,7 @@ $subop = $_GET["subop"]; if ($subop == "catchupAll") { - db_query($link, "UPDATE ttrss_entries SET + db_query($link, "UPDATE ttrss_user_entries SET last_read = NOW(),unread = false WHERE owner_uid = " . $_SESSION["uid"]); }