From: Andrew Dolgov Date: Sun, 11 Nov 2012 18:01:06 +0000 (+0400) Subject: fix headlines subtoolbar not being inserted for feeds with 0 headlines breaking vario... X-Git-Tag: 1.6.1~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fa2374d8053a251bb3ffb114de96188dc4e1be63;p=tt-rss.git fix headlines subtoolbar not being inserted for feeds with 0 headlines breaking various JS stuff expecting it --- diff --git a/classes/feeds.php b/classes/feeds.php index 7e95be06..9a74130b 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -237,15 +237,10 @@ class Feeds extends Handler_Protected { $vgroup_last_feed = $vgr_last_feed; -// if (!$offset) { - - if (db_num_rows($result) > 0) { - $reply['toolbar'] = $this->format_headline_subtoolbar($feed_site_url, - $feed_title, - $feed, $cat_view, $search, $match_on, $search_mode, $view_mode, - $last_error); - } -// } + $reply['toolbar'] = $this->format_headline_subtoolbar($feed_site_url, + $feed_title, + $feed, $cat_view, $search, $match_on, $search_mode, $view_mode, + $last_error); $headlines_count = db_num_rows($result);