diff options
-rw-r--r-- | backend.php | 8 |
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) { |