From: bbaetz%student.usyd.edu.au <> Date: Wed, 23 Jan 2002 06:23:21 +0000 (+0000) Subject: Bug 120543 - Software error when entering a bug when not logged in & only X-Git-Tag: bugzilla-2.16rc1~266 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8603948d4f06aafef40112d011d8a3f779455a7b;p=thirdparty%2Fbugzilla.git Bug 120543 - Software error when entering a bug when not logged in & only one product. r=caillon,jake --- diff --git a/CGI.pl b/CGI.pl index 16ec7f2d8f..3929c8a6d4 100644 --- a/CGI.pl +++ b/CGI.pl @@ -1037,7 +1037,7 @@ Content-type: text/html # (except for Bugzilla_login and Bugzilla_password which we # already added as text fields above). foreach my $i ( grep( $_ !~ /^Bugzilla_/ , keys %::FORM ) ) { - if (scalar(@{$::MFORM{$i}}) > 1) { + if (defined $::MFORM{$i} && scalar(@{$::MFORM{$i}}) > 1) { # This field has multiple values; add each one separately. foreach my $val (@{$::MFORM{$i}}) { print qq|\n|;