summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-08 13:50:36 +0100
committerAndrew Dolgov <[email protected]>2005-09-08 13:50:36 +0100
commit61324b8395c3d055bff6cb505eed939b8e5f2654 (patch)
tree69cdb9bfc1c5190c8fac9dcd35819c4d9073c434
parentd61fd764f85fc5c0500871dce289521e759214ab (diff)
misc bugfixes in op=viewfeed
-rw-r--r--backend.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index f4928971c..8c566cee4 100644
--- a/backend.php
+++ b/backend.php
@@ -531,9 +531,9 @@
if ($feed >= 0) {
$result = db_query($link, "SELECT count(id) as unread FROM ttrss_entries
- WHERE feed_id = ttrss_feeds.id AND $query_strategy_part
+ WHERE feed_id = '$feed' AND $query_strategy_part
AND unread = true");
-
+
$unread = db_fetch_result($result, 0, "unread");
} else if ($feed == -1) {