]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix catchupAll call, rename catchupPage to catchupSelected and update it to new schema
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 19 Nov 2005 17:38:44 +0000 (18:38 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 19 Nov 2005 17:38:44 +0000 (18:38 +0100)
backend.php

index 4b9d3a7f3e1bfbf32a38e000ccca6bcab062c829..a7fe0ff38dc8f319a3dbd868a96cfddc475a1884 100644 (file)
                        print "</rpc-reply>";
                }
                
-               if ($subop == "catchupPage") {
+               if ($subop == "catchupSelected") {
 
                        $ids = split(",", $_GET["ids"]);
 
                        foreach ($ids as $id) {
 
-                               db_query($link, "UPDATE ttrss_entries SET unread=false,last_read = NOW()
-                                       WHERE id = '$id'");
+                               db_query($link, "UPDATE ttrss_user_entries SET unread=false,last_read = NOW()
+                                       WHERE id = '$id' AND owner_uid = " . $_SESSION["uid"]);
 
                        }
 
                $subop = $_GET["subop"];
 
                if ($subop == "catchupAll") {
-                       db_query($link, "UPDATE ttrss_entries SET 
+                       db_query($link, "UPDATE ttrss_user_entries SET 
                                last_read = NOW(),unread = false WHERE owner_uid = " . $_SESSION["uid"]);
                }