diff options
author | Andrew Dolgov <[email protected]> | 2009-02-12 15:04:05 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-02-12 15:04:05 +0300 |
commit | 338c238d9313a9d889fbad6042261dc8ec1e60ab (patch) | |
tree | d8a89b33f61018ddd856c61203b4024a604ca966 | |
parent | 6f69764ccff1c231ebfa3e4cbd32465f34c96d02 (diff) |
catchup_feed: set article last_read when catching up a label
-rw-r--r-- | functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 50a4d607b..0a2f3e530 100644 --- a/functions.php +++ b/functions.php @@ -2228,7 +2228,8 @@ $label_id = -$feed - 11; db_query($link, "UPDATE ttrss_user_entries, ttrss_user_labels2 - SET unread = false WHERE label_id = '$label_id' AND unread = true + SET unread = false, last_read = NOW() + WHERE label_id = '$label_id' AND unread = true AND owner_uid = '".$_SESSION["uid"]."' AND ref_id = article_id"); } |