From 8b4d0095a9a2c3e5543122ccb3fea24d72d094f1 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Wed, 23 Feb 2005 00:01:31 +0000 Subject: Bug 176011 : reports.cgi throws a scary error if collectstats has never been run Patch by Vlad Dascalu r=mkanat a=justdave --- reports.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'reports.cgi') diff --git a/reports.cgi b/reports.cgi index 685b16418..a3e2c740e 100755 --- a/reports.cgi +++ b/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

-- cgit v1.2.3-24-g4f1b