summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 6fe21b923..6f5e2dd59 100644
--- a/backend.php
+++ b/backend.php
@@ -495,6 +495,10 @@
$view_query_part = " (unread = true OR marked = true) AND ";
}
+ if ($view_mode == "Unread or Updated") {
+ $view_query_part = " (unread = true OR last_read is NULL) AND ";
+ }
+
/* $result = db_query($link, "SELECT count(id) AS total_entries
FROM ttrss_entries WHERE
$search_query_part