summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-12 18:46:27 +0300
committerAndrew Dolgov <[email protected]>2010-11-12 18:46:27 +0300
commit6b32516bd0a851c117f785fa7208a6164cdea46f (patch)
treecde4b84cb24fefde5f0fe0444d28a3cd272789c7 /functions.php
parent5caea52260466252577de91658bc7f025784b421 (diff)
do not show subtoolbar when no headlines are available
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/functions.php b/functions.php
index f3e6a62e7..7727a0a8f 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 "<div id=\"headlinesInnerContainer\" onscroll=\"headlines_scroll_handler()\">";
- print "<div id=\"headlinesInnerContainer\" onscroll=\"headlines_scroll_handler()\">";
+ }
}
$headlines_count = db_num_rows($result);
@@ -5554,7 +5557,7 @@
}
if (!$offset) {
- print "</div>";
+ if ($headlines_count > 0) print "</div>";
print "</div>";
}