From: Andrew Dolgov Date: Sat, 19 Nov 2005 05:54:46 +0000 (+0100) Subject: fix mark-as-starred rpc call X-Git-Tag: schema_feature_freeze_for_1.1~203 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b5137506712137bb05e1a0e17d9707999f148c66;p=tt-rss.git fix mark-as-starred rpc call --- 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) {