Bug 12971 [QA Followup] - Fix error caused by patron not having any checkouts
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 18 Nov 2014 18:20:19 +0000 (13:20 -0500)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 19 Nov 2014 12:49:29 +0000 (09:49 -0300)
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>
members/summary-print.pl

index 208d2f9..39897db 100755 (executable)
@@ -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' );