From fed0fc50a10c992fc0b0cab0bccaa50fcf122fd5 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 22 Mar 2019 13:23:35 -0400 Subject: [PATCH] Bug 22566: Fix some problems Signed-off-by: Martin Renvoize Signed-off-by: Nadine Pierre --- misc/cronjobs/stockrotation.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/cronjobs/stockrotation.pl b/misc/cronjobs/stockrotation.pl index 69ae97e38f..4df9d17117 100755 --- a/misc/cronjobs/stockrotation.pl +++ b/misc/cronjobs/stockrotation.pl @@ -354,7 +354,7 @@ sub _report_per_branch { return { letter => $letter, email_address => $branch->{email}, - $status + status => $status }; } return; @@ -470,6 +470,8 @@ sub emit { } } else { + $addressee ||= q{}; + $params->{admin_email} ||= q{}; my $email = "-------- Email message --------" . "\n\n" . "To: " . defined($addressee) ? $addressee -- 2.17.1