fix mark-as-starred rpc call
This commit is contained in:
parent
4c193675d0
commit
b513750671
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue