feed/label MarkAllRead is uid-aware now

This commit is contained in:
Andrew Dolgov 2005-11-18 21:03:51 +01:00
parent b88917afd4
commit 5859be022e
1 changed files with 2 additions and 2 deletions

View File

@ -556,7 +556,7 @@
if ($feed == -1) { if ($feed == -1) {
db_query($link, "UPDATE ttrss_entries db_query($link, "UPDATE ttrss_entries
SET unread = false,last_read = NOW() SET unread = false,last_read = NOW()
WHERE marked = true"); WHERE marked = true AND owner_uid = ".$_SESSION["uid"]);
} }
} else if ($feed < -10) { // label } else if ($feed < -10) { // label
@ -571,7 +571,7 @@
db_query($link, "UPDATE ttrss_entries db_query($link, "UPDATE ttrss_entries
SET unread = false,last_read = NOW() SET unread = false,last_read = NOW()
WHERE $sql_exp"); WHERE $sql_exp AND owner_uid = ".$_SESSION["uid"]);
} }
} }
} else { // tag } else { // tag