From: lpsolit%gmail.com <> Date: Fri, 11 Nov 2005 10:02:33 +0000 (+0000) Subject: Bug 315969: Cannot enter new bugs when the CC list is emtpy - Patch by Frédéric Bucli... X-Git-Tag: bugzilla-2.22rc1~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d9bba8b1ffed78ab47eacc019b88d8c6039b197;p=thirdparty%2Fbugzilla.git Bug 315969: Cannot enter new bugs when the CC list is emtpy - Patch by Frédéric Buclin r/a=myk --- diff --git a/post_bug.cgi b/post_bug.cgi index a2516c3211..5ee8971c43 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -227,6 +227,7 @@ my %ccids; # use a hash rather than a list to avoid adding users twice if (defined $cgi->param('cc')) { foreach my $person ($cgi->param('cc')) { + next unless $person; my $ccid = DBNameToIdAndCheck($person); if ($ccid && !$ccids{$ccid}) { $ccids{$ccid} = 1;