]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix mark-as-starred rpc call
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 19 Nov 2005 05:54:46 +0000 (06:54 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 19 Nov 2005 05:54:46 +0000 (06:54 +0100)
backend.php

index d0200236ed346d66cf44d10e07820a31fe46205f..a3ee30c5f15af26bd5b3c75cdcb3b8eadb98b9e6 100644 (file)
                                $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") {
 
                if ($subop == "MarkAllRead")  {
 
+                       return; // FIXME disabled
+
                        if (sprintf("%d", $feed) != 0) {
                        
                                if ($feed > 0) {