]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Recipients.pm
* fix typo
[debbugs.git] / Debbugs / Recipients.pm
index 904106bc8e2a26a01eed892bbbe775cd3e2d2f52..a73bbd9a91bc933df62b45fa0ad0beb16f62835a 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;