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);