From: travis%sedsystems.ca <> Date: Wed, 23 Feb 2005 00:02:07 +0000 (+0000) Subject: Bug 176011 : reports.cgi throws a scary error if collectstats has never been run X-Git-Tag: bugzilla-2.18.1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6661416841b617cd1bb3927146403553a33c55be;p=thirdparty%2Fbugzilla.git Bug 176011 : reports.cgi throws a scary error if collectstats has never been run Patch by Vlad Dascalu r=mkanat a=justdave --- diff --git a/reports.cgi b/reports.cgi index 685b16418d..a3e2c740e0 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