[open-ils-commits] r15083 - trunk/Open-ILS/src/reporter (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Dec 4 13:45:51 EST 2009


Author: miker
Date: 2009-12-04 13:45:48 -0500 (Fri, 04 Dec 2009)
New Revision: 15083

Modified:
   trunk/Open-ILS/src/reporter/clark-kent.pl
Log:
patch from Steve Callendar to protect against report output failure when trying to draw a line graph with no datasets

Modified: trunk/Open-ILS/src/reporter/clark-kent.pl
===================================================================
--- trunk/Open-ILS/src/reporter/clark-kent.pl	2009-12-04 17:06:52 UTC (rev 15082)
+++ trunk/Open-ILS/src/reporter/clark-kent.pl	2009-12-04 18:45:48 UTC (rev 15083)
@@ -782,6 +782,8 @@
 		
 	}
 
+	return [] unless ($new_data[0] && @{$new_data[0]});
+
 	for my $col (@use_me) {
 		push @leg, $r->{column_labels}->[$values[$col - 1]];
 	}



More information about the open-ils-commits mailing list