fix mark-as-starred rpc call

This commit is contained in:
Andrew Dolgov 2005-11-19 06:54:46 +01:00
parent 4c193675d0
commit b513750671

View file

@ -351,8 +351,10 @@
$mark = "false"; $mark = "false";
} }
$result = db_query($link, "UPDATE ttrss_entries SET marked = $mark // FIXME this needs collision testing
WHERE id = '$id'");
$result = db_query($link, "UPDATE ttrss_user_entries SET marked = $mark
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
} }
if ($subop == "updateFeed") { if ($subop == "updateFeed") {
@ -561,6 +563,8 @@
if ($subop == "MarkAllRead") { if ($subop == "MarkAllRead") {
return; // FIXME disabled
if (sprintf("%d", $feed) != 0) { if (sprintf("%d", $feed) != 0) {
if ($feed > 0) { if ($feed > 0) {