patch from Steve Callendar to protect against report output failure when trying to...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Dec 2009 18:46:26 +0000 (18:46 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Dec 2009 18:46:26 +0000 (18:46 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@15084 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/reporter/clark-kent.pl

index 5e87cb2..45d43ec 100755 (executable)
@@ -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]];
        }