Fix for bug 87596: improper definition of $::components in globals.pl

Patch by Dave Miller <justdave@syndicomm.com> r= jake@acutex.net
parent a6bd4e98
......@@ -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 "<H1>Permission Denied</H1>\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";
......
......@@ -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);
......
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