do not show subtoolbar when no headlines are available
This commit is contained in:
parent
5caea52260
commit
6b32516bd0
|
@ -5079,10 +5079,13 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
print_headline_subtoolbar($link, $feed_site_url, $feed_title,
|
if (db_num_rows($result) > 0) {
|
||||||
$feed, $cat_view, $search, $match_on, $search_mode, $view_mode);
|
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);
|
$headlines_count = db_num_rows($result);
|
||||||
|
@ -5554,7 +5557,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$offset) {
|
if (!$offset) {
|
||||||
print "</div>";
|
if ($headlines_count > 0) print "</div>";
|
||||||
print "</div>";
|
print "</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue