From: Andrew Dolgov Date: Sat, 19 Nov 2005 17:38:44 +0000 (+0100) Subject: fix catchupAll call, rename catchupPage to catchupSelected and update it to new schema X-Git-Tag: schema_feature_freeze_for_1.1~182 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b018b49b2e765e02a7b64bf75c28b92cc9f5e962;p=tt-rss.git fix catchupAll call, rename catchupPage to catchupSelected and update it to new schema --- diff --git a/backend.php b/backend.php index 4b9d3a7f..a7fe0ff3 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"]); }