]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
getFeedArticles(): Use valid query to get count of matching articles.
[tt-rss.git] / include / functions.php
index 38ccfe8ac9e80aac553348c2b94786d6a7bae422..ba2e90bd4a868e4d595c3a28fd5312226df03997 100644 (file)
                                $from_where = "ttrss_entries.id = ttrss_user_entries.ref_id AND";
                        } else {
                                $from_qpart = "ttrss_user_entries";
+                               $from_where = "";
                        }
 
                        $query = "SELECT count(int_id) AS unread