summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index dd38641ac..cfdc4be9c 100644
--- a/backend.php
+++ b/backend.php
@@ -261,7 +261,9 @@
}
$result = pg_query("SELECT count(id) AS total_entries
- FROM ttrss_entries WHERE feed_id = '$feed'");
+ FROM ttrss_entries WHERE
+ $search_query_part
+ feed_id = '$feed'");
$total_entries = pg_fetch_result($result, 0, "total_entries");