diff options
author | lpsolit%gmail.com <> | 2008-12-14 15:28:29 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-12-14 15:28:29 +0100 |
commit | 52b121e307b2b6eada5551f0978f7a863662ede5 (patch) | |
tree | 7b0ef4a508f24c7bb3774d9ccb46d3aeb588d6b1 | |
parent | 1c881b96dcd6a128e79c2183c904d0caa7f1c1d1 (diff) | |
download | bugzilla-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
-rwxr-xr-x | reports.cgi | 1 |
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}); } |