]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 315969: Cannot enter new bugs when the CC list is emtpy - Patch by Frédéric Bucli...
authorlpsolit%gmail.com <>
Fri, 11 Nov 2005 10:04:41 +0000 (10:04 +0000)
committerlpsolit%gmail.com <>
Fri, 11 Nov 2005 10:04:41 +0000 (10:04 +0000)
post_bug.cgi

index 656ae187f101c4d14d728482213b01a15b544b84..bd0f73e16f3d0cd8cc3bf30bb33fad2f6545703c 100755 (executable)
@@ -230,6 +230,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;