From: lpsolit%gmail.com <> Date: Tue, 20 Feb 2007 06:22:03 +0000 (+0000) Subject: Bug 289627: Chart report crashes when there is no series data to plot - Patch by... X-Git-Tag: bugzilla-2.22.3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=454c10fa2fa663bf0860484e384ab10a322d3f63;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 a0853d508b..f591d6c593 100644 --- a/Bugzilla/Chart.pm +++ b/Bugzilla/Chart.pm @@ -215,6 +215,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;