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:45:48 +0000 (18:45 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Dec 2009 18:45:48 +0000 (18:45 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15083 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 9800a9c..d917eec 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]];
        }