Bug 12971 [QA Followup] - Fix error caused by patron not having any checkouts
Signed-off-by: Owen Leonard <oleonard@myacpl.org> This successfully fixes the problem observed when a patron has no checkouts. Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
2ca4841ea4
commit
1e98ff655d
|
|
@ -76,7 +76,7 @@ output_html_with_http_headers $input, $cookie, $template->output;
|
|||
sub build_issue_data {
|
||||
my $issues = shift;
|
||||
|
||||
my $return;
|
||||
my $return = [];
|
||||
|
||||
my $today = DateTime->now( time_zone => C4::Context->tz );
|
||||
$today->truncate( to => 'day' );
|
||||
|
|
|
|||
Loading…
Reference in New Issue