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