From ab93a2a35ca6bddde5ba092aca48a57dd434782f Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 9 Aug 2008 08:40:24 -0700 Subject: [PATCH] * Handle non-existant cc/bcc in Recipients --- Debbugs/Recipients.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.2