]> git.donarmstrong.com Git - debbugs.git/commitdiff
* Handle non-existant cc/bcc in Recipients
authorDon Armstrong <don@donarmstrong.com>
Sat, 9 Aug 2008 15:40:24 +0000 (08:40 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 9 Aug 2008 15:40:24 +0000 (08:40 -0700)
Debbugs/Recipients.pm

index 904106bc8e2a26a01eed892bbbe775cd3e2d2f52..f4804e4df35766ace643203f160750d9e0f8c05e 100644 (file)
@@ -304,7 +304,10 @@ sub determine_recipients {
      }
      for (qw(to cc bcc)) {
          if ($param{$_}) {
-              return @{$final_recipients{$_}};
+              if (exists $final_recipients{$_}) {
+                   return @{$final_recipients{$_}|[]};
+              }
+              return ();
          }
      }
      return %final_recipients;