]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 176011 : reports.cgi throws a scary error if collectstats has never been run
authortravis%sedsystems.ca <>
Wed, 23 Feb 2005 00:02:07 +0000 (00:02 +0000)
committertravis%sedsystems.ca <>
Wed, 23 Feb 2005 00:02:07 +0000 (00:02 +0000)
Patch by Vlad Dascalu <vladd@bugzilla.org>   r=mkanat  a=justdave

reports.cgi

index 685b16418d82e5f204e5d672f793732fb1b22296..a3e2c740e0e1f5d2a9814917ec1960eb9bd7485d 100755 (executable)
@@ -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>