summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-02-20 07:20:09 +0100
committerlpsolit%gmail.com <>2007-02-20 07:20:09 +0100
commit1a0c2b4fa851c4f70d565d2d4797167a17839f43 (patch)
treecc4d4a563caf0d8955c3ce40ed83effc40714d3c
parentb705df322c8d1f703c1d97c96eac1a8dc9053d11 (diff)
downloadbugzilla-1a0c2b4fa851c4f70d565d2d4797167a17839f43.tar.gz
bugzilla-1a0c2b4fa851c4f70d565d2d4797167a17839f43.tar.xz
Bug 289627: Chart report crashes when there is no series data to plot - Patch by Frédéric Buclin <LpSolit@gmail.com> r=gerv a=LpSolit
-rw-r--r--Bugzilla/Chart.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Chart.pm b/Bugzilla/Chart.pm
index 729120e8e..9701f7b32 100644
--- a/Bugzilla/Chart.pm
+++ b/Bugzilla/Chart.pm
@@ -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;