From: Andrew Dolgov Date: Fri, 12 Nov 2010 15:46:27 +0000 (+0300) Subject: do not show subtoolbar when no headlines are available X-Git-Tag: 1.5.0~256 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6b32516bd0a851c117f785fa7208a6164cdea46f;p=tt-rss.git do not show subtoolbar when no headlines are available --- diff --git a/functions.php b/functions.php index f3e6a62e..7727a0a8 100644 --- a/functions.php +++ b/functions.php @@ -5079,10 +5079,13 @@ return; } - print_headline_subtoolbar($link, $feed_site_url, $feed_title, - $feed, $cat_view, $search, $match_on, $search_mode, $view_mode); + if (db_num_rows($result) > 0) { + print_headline_subtoolbar($link, $feed_site_url, $feed_title, + $feed, $cat_view, $search, $match_on, $search_mode, $view_mode); + + print "
"; - print "
"; + } } $headlines_count = db_num_rows($result); @@ -5554,7 +5557,7 @@ } if (!$offset) { - print "
"; + if ($headlines_count > 0) print "
"; print ""; }