From: justdave%syndicomm.com <> Date: Sun, 1 Jul 2001 09:00:56 +0000 (+0000) Subject: Fix for bug 87596: improper definition of $::components in globals.pl X-Git-Tag: bugzilla-2.14~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=092f07bfc3ff0259544f2dbd99d79868975f7167;p=thirdparty%2Fbugzilla.git Fix for bug 87596: improper definition of $::components in globals.pl Patch by Dave Miller r= jake@acutex.net --- diff --git a/enter_bug.cgi b/enter_bug.cgi index c1f4e61b15..91622590c3 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -237,7 +237,7 @@ my $platform_popup = make_popup('rep_platform', \@::legal_platform, pickplatform(), 0); my $opsys_popup = make_popup('op_sys', \@::legal_opsys, pickos(), 0); -if (0 == $::components{$product}) { +if (0 == @{$::components{$product}}) { print "

Permission Denied

\n"; print "Sorry. You need to have at least one component for this product\n"; print "in order to create a new bug. Go to the \"Components\" link to create\n"; diff --git a/globals.pl b/globals.pl index 2b3456959f..aa50355a05 100644 --- a/globals.pl +++ b/globals.pl @@ -501,7 +501,7 @@ sub GenerateVersionTable { foreach my $i (@list) { if (!defined $::components{$i}) { - $::components{$i} = ""; + $::components{$i} = []; } } @::legal_versions = sort {uc($a) cmp uc($b)} keys(%varray);