From fa2374d8053a251bb3ffb114de96188dc4e1be63 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 11 Nov 2012 22:01:06 +0400 Subject: fix headlines subtoolbar not being inserted for feeds with 0 headlines breaking various JS stuff expecting it --- classes/feeds.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'classes/feeds.php') diff --git a/classes/feeds.php b/classes/feeds.php index 7e95be06f..9a74130b0 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); -- cgit v1.2.3