diff options
Diffstat (limited to 'reports.cgi')
-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}); } |