From 872b154ad6dc6f38c2929785e2f9b406ad5a7e1c 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 --- 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 083c14766a..f1786bb28d 100755 --- a/misc/cronjobs/stockrotation.pl +++ b/misc/cronjobs/stockrotation.pl @@ -352,7 +352,7 @@ sub _report_per_branch { return { letter => $letter, email_address => $branch->{email}, - $status + status => $status }; } return; @@ -468,6 +468,8 @@ sub emit { } } else { + $addressee ||= q{}; + $params->{admin_email} ||= q{}; my $email = "-------- Email message --------" . "\n\n" . "To: " . defined($addressee) ? $addressee -- 2.11.0