From 4faf7d45c0cd6d10147c4e5b1ad75f807b93a04c Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 4 Dec 2009 18:45:48 +0000 Subject: [PATCH] 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/trunk@15083 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/reporter/clark-kent.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/reporter/clark-kent.pl b/Open-ILS/src/reporter/clark-kent.pl index 9800a9ce75..d917eec437 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]]; } -- 2.11.0