From 1a0c2b4fa851c4f70d565d2d4797167a17839f43 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 20 Feb 2007 06:20:09 +0000 Subject: Bug 289627: Chart report crashes when there is no series data to plot - Patch by Frédéric Buclin r=gerv a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Chart.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Bugzilla/Chart.pm') 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; -- cgit v1.2.3-24-g4f1b