]> git.wh0rd.org - tt-rss.git/commitdiff
getFeedArticles(): Use valid query to get count of matching articles.
authorRobert Wetzlmayr <r.wetzlmayr@gmail.com>
Tue, 12 Nov 2013 12:46:56 +0000 (13:46 +0100)
committerRobert Wetzlmayr <r.wetzlmayr@gmail.com>
Tue, 12 Nov 2013 12:46:56 +0000 (13:46 +0100)
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