]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 289627: Chart report crashes when there is no series data to plot - Patch by...
authorlpsolit%gmail.com <>
Tue, 20 Feb 2007 06:22:03 +0000 (06:22 +0000)
committerlpsolit%gmail.com <>
Tue, 20 Feb 2007 06:22:03 +0000 (06:22 +0000)
Bugzilla/Chart.pm

index a0853d508bbf7c6345d315c61f9c2ba6c2d9b8a1..f591d6c59385623d6eea7c3b65d83c08961e3448 100644 (file)
@@ -215,6 +215,8 @@ sub readData {
     # We need to handle errors better.
     my $series_ids = join(",", $self->getSeriesIDs());
 
+    return [] unless $series_ids;
+
     # Work out the date boundaries for our data.
     my $dbh = Bugzilla->dbh;