summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-11-11 22:01:06 +0400
committerAndrew Dolgov <[email protected]>2012-11-11 22:01:06 +0400
commitfa2374d8053a251bb3ffb114de96188dc4e1be63 (patch)
tree7bd44c3f417eb8f8b4aedac4ec39c65f46a4e88b
parentc714cee73bb3f4f6a449c0f45e195026aca4f1a6 (diff)
fix headlines subtoolbar not being inserted for feeds with 0 headlines breaking various JS stuff expecting it
-rw-r--r--classes/feeds.php13
1 files changed, 4 insertions, 9 deletions
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);