From 2734bd79059e799656956530d96df3c7efd97aa0 Mon Sep 17 00:00:00 2001 From: "tara%tequilarista.org" <> Date: Sun, 21 Jan 2001 00:58:32 +0000 Subject: Landing Ask Bjoern Hansen's fix for bug #39159 --- reports.cgi | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'reports.cgi') diff --git a/reports.cgi b/reports.cgi index b54a91b0e..4efaba9de 100755 --- a/reports.cgi +++ b/reports.cgi @@ -39,8 +39,10 @@ use diagnostics; use strict; -use GD; +eval "use GD"; +my $use_gd = @ ? 0 : 1; eval "use Chart::Lines"; +$use_gd = 0 if $@; require "CGI.pl"; use vars qw(%FORM); # globals from CGI.pl @@ -157,9 +159,7 @@ PutFooter() if $FORM{banner}; sub choose_product { my $product_popup = make_options (\@myproducts, $myproducts[0]); - my $charts = defined $Chart::Lines::VERSION && -d $dir ? "