]> git.wh0rd.org Git - tt-rss.git/commitdiff
feed/label MarkAllRead is uid-aware now
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 18 Nov 2005 20:03:51 +0000 (21:03 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 18 Nov 2005 20:03:51 +0000 (21:03 +0100)
backend.php

index 4b10cbdbfadfa8c7f81454c312be918872b7a47b..6dec10d1698a42aa4d8566572170a407cfcaf860 100644 (file)
                                        if ($feed == -1) {
                                                db_query($link, "UPDATE ttrss_entries 
                                                        SET unread = false,last_read = NOW()
-                                                       WHERE marked = true");
+                                                       WHERE marked = true AND owner_uid = ".$_SESSION["uid"]);
                                        }
                        
                                } else if ($feed < -10) { // label
 
                                                db_query($link, "UPDATE ttrss_entries 
                                                        SET unread = false,last_read = NOW()
-                                                       WHERE $sql_exp");
+                                                       WHERE $sql_exp AND owner_uid = ".$_SESSION["uid"]);
                                        }
                                }
                        } else { // tag