From b5137506712137bb05e1a0e17d9707999f148c66 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 19 Nov 2005 06:54:46 +0100 Subject: [PATCH] fix mark-as-starred rpc call --- backend.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backend.php b/backend.php index d0200236..a3ee30c5 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) { -- 2.39.5