From f56ec297e429f9b6185960929af129d4d82b437d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 28 Nov 2005 10:57:47 +0100 Subject: [PATCH] headlines: hide subtoolbar when there are no articles to display --- backend.php | 83 +++++++++++++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 44 deletions(-) diff --git a/backend.php b/backend.php index e22dfe8e..7ea9bb2f 100644 --- a/backend.php +++ b/backend.php @@ -915,48 +915,6 @@ $feed_title = "?"; } - print ""; - - print ""; - - print ""; - print "
- Select: - All, - Unread, - None -    - Toggle: Unread, - Starred"; - -/* print "   - View: - All, - Unread, - Starred -    - Feed: - Update, - Mark as read"; */ - - print ""; - - if ($feed_site_url) { - print "$feed_title"; - } else { - print $feed_title; - } - - print "
"; - - print ""; - - if ($feed < -10) error_reporting (0); if (sprintf("%d", $feed) != 0) { @@ -1018,11 +976,48 @@ } if (!$result) { - print ""; + print "
+ Could not display feed (query failed). Please check match syntax or local configuration.
"; return; } + if (db_num_rows($result) > 0) { + + print "
- Could not display feed (query failed). Please check match syntax or local configuration.
"; + + print ""; + + print ""; + print "
+ Select: + All, + Unread, + None +    + Toggle: Unread, + Starred"; + + print ""; + + if ($feed_site_url) { + print "$feed_title"; + } else { + print $feed_title; + } + + print "
"; + + } + + print ""; + + + $lnum = 0; error_reporting (DEFAULT_ERROR_LEVEL); -- 2.39.5