From: Andrew Dolgov Date: Thu, 8 Sep 2005 12:50:36 +0000 (+0100) Subject: misc bugfixes in op=viewfeed X-Git-Tag: 1.0.4~15 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=61324b8395c3d055bff6cb505eed939b8e5f2654;p=tt-rss.git misc bugfixes in op=viewfeed --- diff --git a/backend.php b/backend.php index f4928971..8c566cee 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) {