From e53d340983edae41565e70bc629a30e7e8c532be Mon Sep 17 00:00:00 2001
From: Kirill Krasnov <krasnovforum@gmail.com>
Date: Thu, 13 May 2010 10:16:07 +0300
Subject: [PATCH] Fix incorrect structure table if one of checks return true

---
 core/html_api.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/html_api.php b/core/html_api.php
index ab52334..5b7bf55 100644
--- a/core/html_api.php
+++ b/core/html_api.php
@@ -1273,10 +1273,6 @@ function print_summary_menu( $p_page = '' ) {
  * @return null
  */
 function html_status_legend() {
-	echo '<br />';
-	echo '<table class="status-legend width100" cellspacing="1">';
-	echo '<tr>';
-
 	# Don't show the legend if only one status is selected by the current filter
 	$t_current_filter = current_user_get_bug_filter();
 	if ( $t_current_filter === false ) {
@@ -1327,6 +1323,10 @@ function html_status_legend() {
 		return null;
 	}
 
+	echo '<br />';
+	echo '<table class="status-legend width100" cellspacing="1">';
+	echo '<tr>';
+
 	# draw the status bar
 	$width = (int)( 100 / count( $t_status_array ) );
 	foreach( $t_status_array as $t_status => $t_name ) {
-- 
1.7.1.msysgit.1

