From bd5ef25eacfb0571be70a418aeca7ad9da87f093 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" Date: Tue, 22 Feb 2005 16:02:07 +0000 Subject: [PATCH] Bug 176011 : reports.cgi throws a scary error if collectstats has never been run Patch by Vlad Dascalu r=mkanat a=justdave git-svn-id: svn://10.0.0.236/trunk@169596 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/reports.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/reports.cgi b/mozilla/webtools/bugzilla/reports.cgi index 685b16418d8..a3e2c740e0e 100755 --- a/mozilla/webtools/bugzilla/reports.cgi +++ b/mozilla/webtools/bugzilla/reports.cgi @@ -71,8 +71,6 @@ push( @myproducts, GetSelectableProducts()); if (! defined $cgi->param('product')) { - print $cgi->header(); - PutHeader("Bug Charts"); choose_product(@myproducts); PutFooter(); @@ -122,6 +120,9 @@ sub choose_product { open(DATA, "$dir/$datafile") || ThrowCodeError("chart_file_open_fail", {filename => "$dir/$datafile"}); + print $cgi->header(); + PutHeader("Bug Charts"); + print <

Welcome to the Bugzilla Charting Kitchen