]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Recipients.pm
* Handle non-existant cc/bcc in Recipients
[debbugs.git] / 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;