X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FRecipients.pm;fp=Debbugs%2FRecipients.pm;h=f4804e4df35766ace643203f160750d9e0f8c05e;hb=ab93a2a35ca6bddde5ba092aca48a57dd434782f;hp=904106bc8e2a26a01eed892bbbe775cd3e2d2f52;hpb=d8f3f5da7ad937162bdce39dbab1ef5b38cefda7;p=debbugs.git diff --git a/Debbugs/Recipients.pm b/Debbugs/Recipients.pm index 904106b..f4804e4 100644 --- a/Debbugs/Recipients.pm +++ b/Debbugs/Recipients.pm @@ -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;