a more readable way to test an array size.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
f17e1117df
commit
e5adbdcbd1
|
|
@ -401,7 +401,7 @@ elsif ($phase eq 'Export'){
|
|||
my $sql = $input->param('sql');
|
||||
my $format = $input->param('format');
|
||||
my ($results, $total, $errors) = execute_query($sql,1,0,0,$format);
|
||||
if ($#$errors == -1) {
|
||||
if (!@$errors) {
|
||||
$no_html=1;
|
||||
print $input->header( -type => 'application/octet-stream',
|
||||
-attachment=>'reportresults.csv'
|
||||
|
|
|
|||
Loading…
Reference in New Issue