]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 120543 - Software error when entering a bug when not logged in & only
authorbbaetz%student.usyd.edu.au <>
Wed, 23 Jan 2002 06:23:21 +0000 (06:23 +0000)
committerbbaetz%student.usyd.edu.au <>
Wed, 23 Jan 2002 06:23:21 +0000 (06:23 +0000)
one product.
r=caillon,jake

CGI.pl

diff --git a/CGI.pl b/CGI.pl
index 16ec7f2d8f93ccd32e9123e4a1ff3f5534e4c332..3929c8a6d47a7d27358787cef27395211bc92c4d 100644 (file)
--- 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|<input type="hidden" name="$i" value="@{[value_quote($val)]}">\n|;