From: lpsolit%gmail.com <> Date: Tue, 20 Feb 2007 06:20:09 +0000 (+0000) Subject: Bug 289627: Chart report crashes when there is no series data to plot - Patch by... X-Git-Tag: bugzilla-3.0rc1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a0c2b4fa851c4f70d565d2d4797167a17839f43;p=thirdparty%2Fbugzilla.git Bug 289627: Chart report crashes when there is no series data to plot - Patch by Frédéric Buclin r=gerv a=LpSolit --- diff --git a/Bugzilla/Chart.pm b/Bugzilla/Chart.pm index 729120e8e9..9701f7b32d 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;