summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;