Commit 8485e0fd authored by terry%mozilla.org's avatar terry%mozilla.org

Patch by holger@holger.om.org (Holger Schurig) -- cope if Chart::Lines module is unavailable.

parent 88237e94
......@@ -27,7 +27,7 @@
use diagnostics;
use strict;
use Chart::Lines;
eval "use Chart::Lines";
require "CGI.pl";
require "globals.pl";
......@@ -114,7 +114,9 @@ FIN
sub choose_product
{
my $product_popup = make_options (\@myproducts, $myproducts[0]);
my $charts = (-d $dir) ? "<option value=\"show_chart\">Bug Charts" : "";
my $charts = defined $Chart::Lines::VERSION && -d $dir ? "<option value=\"show_chart\">Bug Charts" : "";
# get rid of warning:
$Chart::Lines::VERSION = $Chart::Lines::VERSION;
print <<FIN;
<center>
......
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