summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-19 06:54:46 +0100
committerAndrew Dolgov <[email protected]>2005-11-19 06:54:46 +0100
commitb5137506712137bb05e1a0e17d9707999f148c66 (patch)
treeb5be02bdd117874a3dad57866221c7ba3afa3eba /backend.php
parent4c193675d010ceb5a7a690b55cb7c394f1525409 (diff)
fix mark-as-starred rpc call
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index d0200236e..a3ee30c5f 100644
--- a/backend.php
+++ b/backend.php
@@ -351,8 +351,10 @@
$mark = "false";
}
- $result = db_query($link, "UPDATE ttrss_entries SET marked = $mark
- WHERE id = '$id'");
+ // FIXME this needs collision testing
+
+ $result = db_query($link, "UPDATE ttrss_user_entries SET marked = $mark
+ WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
}
if ($subop == "updateFeed") {
@@ -561,6 +563,8 @@
if ($subop == "MarkAllRead") {
+ return; // FIXME disabled
+
if (sprintf("%d", $feed) != 0) {
if ($feed > 0) {