From 454c10fa2fa663bf0860484e384ab10a322d3f63 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 20 Feb 2007 06:22:03 +0000 Subject: [PATCH] =?utf8?q?Bug=20289627:=20Chart=20report=20crashes=20when?= =?utf8?q?=20there=20is=20no=20series=20data=20to=20plot=20-=20Patch=20by?= =?utf8?q?=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20?= =?utf8?q?=20r=3Dgerv=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Chart.pm | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.3