Commit 8b4d0095 authored by travis%sedsystems.ca's avatar travis%sedsystems.ca

Bug 176011 : reports.cgi throws a scary error if collectstats has never been run

Patch by Vlad Dascalu <vladd@bugzilla.org> r=mkanat a=justdave
parent f526db6a
......@@ -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 <<FIN;
<center>
<h1>Welcome to the Bugzilla Charting Kitchen</h1>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment