diff options
Diffstat (limited to 'reports.cgi')
-rwxr-xr-x | reports.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reports.cgi b/reports.cgi index cdc9d4a87..89dee1c9a 100755 --- a/reports.cgi +++ b/reports.cgi @@ -138,7 +138,7 @@ sub generate_chart { my ($dir, $image_file, $product, $datasets) = @_; my $data_file = $dir . '/' . $product->id; - if (! open FILE, $data_file) { + if (!open(FILE, '<', $data_file)) { ThrowCodeError('chart_data_not_generated', {'product' => $product}); } |