aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-12-14 14:28:29 +0000
committerlpsolit%gmail.com <>2008-12-14 14:28:29 +0000
commit52b121e307b2b6eada5551f0978f7a863662ede5 (patch)
tree7b0ef4a508f24c7bb3774d9ccb46d3aeb588d6b1 /reports.cgi
parentBug 399079: Remove the 'showallproducts' parameter - Patch by Frédéric ... (diff)
downloadbugzilla-52b121e307b2b6eada5551f0978f7a863662ede5.tar.gz
bugzilla-52b121e307b2b6eada5551f0978f7a863662ede5.tar.bz2
bugzilla-52b121e307b2b6eada5551f0978f7a863662ede5.zip
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});
}