summaryrefslogtreecommitdiffstats
path: root/reports.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-12-14 15:28:29 +0100
committerlpsolit%gmail.com <>2008-12-14 15:28:29 +0100
commit52b121e307b2b6eada5551f0978f7a863662ede5 (patch)
tree7b0ef4a508f24c7bb3774d9ccb46d3aeb588d6b1 /reports.cgi
parent1c881b96dcd6a128e79c2183c904d0caa7f1c1d1 (diff)
downloadbugzilla-52b121e307b2b6eada5551f0978f7a863662ede5.tar.gz
bugzilla-52b121e307b2b6eada5551f0978f7a863662ede5.tar.xz
Bug 469207: Old chart reports crash if there is no data yet - Patch by Frédéric Buclin <LpSolit@gmail.com> r=gerv a=LpSolit
Diffstat (limited to 'reports.cgi')
-rwxr-xr-xreports.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/reports.cgi b/reports.cgi
index 40bbc82bb..6eb4496cc 100755
--- a/reports.cgi
+++ b/reports.cgi
@@ -215,6 +215,7 @@ sub generate_chart {
if (/^#/) {
if (/^# fields?: (.*)\s*$/) {
@fields = split /\||\r/, $1;
+ $data{$_} ||= [] foreach @fields;
unless ($fields[0] =~ /date/i) {
ThrowCodeError('chart_datafile_corrupt', {'file' => $data_file});
}