From: Andrew Dolgov Date: Mon, 28 Nov 2005 09:57:47 +0000 (+0100) Subject: headlines: hide subtoolbar when there are no articles to display X-Git-Tag: schema_feature_freeze_for_1.1~45 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f56ec297e429f9b6185960929af129d4d82b437d;p=tt-rss.git headlines: hide subtoolbar when there are no articles to display --- 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);