diff options
author | Andrew Dolgov <[email protected]> | 2009-01-28 11:08:01 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-01-28 11:08:01 +0100 |
commit | f9fca8cb997d7c9cda66b350479e6fa2a2c86c88 (patch) | |
tree | f9be2dcb83c864b38bd9f728840d7e90911468d6 | |
parent | 1d4a2918ed8e8e7e06e0e9c34cf714f04cf34867 (diff) |
add catchup fixme for all_labels feed
-rw-r--r-- | functions.php | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/functions.php b/functions.php index a79b2345a..ec3d7926a 100644 --- a/functions.php +++ b/functions.php @@ -2114,23 +2114,29 @@ if ($cat_view) { - if ($feed > 0) { - $cat_qpart = "cat_id = '$feed'"; - } else { - $cat_qpart = "cat_id IS NULL"; - } + if $feed >= 0) { + + if ($feed > 0) { + $cat_qpart = "cat_id = '$feed'"; + } else { + $cat_qpart = "cat_id IS NULL"; + } - $tmp_result = db_query($link, "SELECT id - FROM ttrss_feeds WHERE $cat_qpart AND owner_uid = " . - $_SESSION["uid"]); + $tmp_result = db_query($link, "SELECT id + FROM ttrss_feeds WHERE $cat_qpart AND owner_uid = " . + $_SESSION["uid"]); - while ($tmp_line = db_fetch_assoc($tmp_result)) { + while ($tmp_line = db_fetch_assoc($tmp_result)) { - $tmp_feed = $tmp_line["id"]; + $tmp_feed = $tmp_line["id"]; - db_query($link, "UPDATE ttrss_user_entries - SET unread = false,last_read = NOW() - WHERE feed_id = '$tmp_feed' AND owner_uid = " . $_SESSION["uid"]); + db_query($link, "UPDATE ttrss_user_entries + SET unread = false,last_read = NOW() + WHERE feed_id = '$tmp_feed' AND owner_uid = " . $_SESSION["uid"]); + } + } else if ($feed == -2) { + + /* FIXME catchup for all labels vfeed */ } } else if ($feed > 0) { |