From 7a89deb63a7e45c1fd5a41a82ce975ab57003cb9 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: Nick Clemens Signed-off-by: Martin Renvoize (cherry picked from commit b62473d192abaf9371bffb0ec4d73267a0070447) Signed-off-by: Fridolin Somers --- 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.39.5