]> 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:20:09 +0000 (06:20 +0000)
committerlpsolit%gmail.com <>
Tue, 20 Feb 2007 06:20:09 +0000 (06:20 +0000)
Bugzilla/Chart.pm

index 729120e8e9c6c460ffe46f74314f44d37fb3d371..9701f7b32deb6de4f8b0cd070d16010fb4f2462a 100644 (file)
@@ -218,6 +218,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;