summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobert Wetzlmayr <[email protected]>2013-11-12 13:46:56 +0100
committerRobert Wetzlmayr <[email protected]>2013-11-12 13:46:56 +0100
commit60168a8d9ad5882cd45e90821dfa86d10ae18fd9 (patch)
tree1fa131a2cd9da1b4ae7027251e5f7fd14828eec8 /include
parent0c7e49936acc3e96b09364c02b7cbabe6043e950 (diff)
getFeedArticles(): Use valid query to get count of matching articles.
Diffstat (limited to 'include')
-rw-r--r--include/functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 38ccfe8ac..ba2e90bd4 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1458,6 +1458,7 @@
$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