From: miker Date: Fri, 4 Dec 2009 18:46:26 +0000 (+0000) Subject: patch from Steve Callendar to protect against report output failure when trying to... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=44398c033efd5aa0a04932ca564f5ac45503c1b2;p=working%2FEvergreen.git patch from Steve Callendar to protect against report output failure when trying to draw a line graph with no datasets git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@15084 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/reporter/clark-kent.pl b/Open-ILS/src/reporter/clark-kent.pl index 5e87cb2478..45d43ec0ba 100755 --- a/Open-ILS/src/reporter/clark-kent.pl +++ b/Open-ILS/src/reporter/clark-kent.pl @@ -782,6 +782,8 @@ sub draw_lines { } + return [] unless ($new_data[0] && @{$new_data[0]}); + for my $col (@use_me) { push @leg, $r->{column_labels}->[$values[$col - 1]]; }