From: Don Armstrong Date: Sat, 9 Aug 2008 15:40:24 +0000 (-0700) Subject: * Handle non-existant cc/bcc in Recipients X-Git-Tag: release/2.6.0~486^2~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ab93a2a35ca6bddde5ba092aca48a57dd434782f;p=debbugs.git * Handle non-existant cc/bcc in Recipients --- 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;