summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-19 18:38:44 +0100
committerAndrew Dolgov <[email protected]>2005-11-19 18:38:44 +0100
commitb018b49b2e765e02a7b64bf75c28b92cc9f5e962 (patch)
tree23244efa989706f292f66cb2a565d6fd13b4fbdb /backend.php
parentb17fcb1a0c627db9539e2d12c70dec76f543d30a (diff)
fix catchupAll call, rename catchupPage to catchupSelected and update it to new schema
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php8
1 files 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 "</rpc-reply>";
}
- 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"]);
}