From: Andrew Dolgov Date: Fri, 18 Nov 2005 20:03:51 +0000 (+0100) Subject: feed/label MarkAllRead is uid-aware now X-Git-Tag: schema_feature_freeze_for_1.1~208 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5859be022e60b8c9b93c3b62b78c2b794ec947b4;p=tt-rss.git feed/label MarkAllRead is uid-aware now --- diff --git a/backend.php b/backend.php index 4b10cbdb..6dec10d1 100644 --- a/backend.php +++ b/backend.php @@ -556,7 +556,7 @@ 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 @@ -571,7 +571,7 @@ 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