]> git.wh0rd.org Git - tt-rss.git/commitdiff
recently read: select query fix
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 27 Aug 2012 06:14:07 +0000 (10:14 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 27 Aug 2012 06:14:07 +0000 (10:14 +0400)
include/functions.php

index 9f0ae7306f62283ce89223ddd2a3aa2b0d3178f8..441eacb207358fee09f65deab4d8f806ac8edec6 100644 (file)
 
                                }
                        } else if ($feed == -6) { // recently read
-                               $query_strategy_part = "unread = false";
+                               $query_strategy_part = "unread = false AND last_read IS NOT NULL";
                                $vfeed_query_part = "ttrss_feeds.title AS feed_title,";
                                $override_order = "last_read DESC";
                        } else if ($feed == -3) { // fresh virtual feed