From: Nick Clemens Date: Fri, 22 Mar 2019 17:23:35 +0000 (-0400) Subject: Bug 22566: Fix some problems X-Git-Url: http://git.equinoxoli.org/?p=koha-equinox.git;a=commitdiff_plain;h=b62473d192abaf9371bffb0ec4d73267a0070447 Bug 22566: Fix some problems Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- diff --git a/misc/cronjobs/stockrotation.pl b/misc/cronjobs/stockrotation.pl index 69ae97e..4df9d17 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