a more readable way to test an array size.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Nahuel Angelinetti 2008-10-15 11:03:25 +02:00 committed by Galen Charlton
parent f17e1117df
commit e5adbdcbd1
1 changed files with 1 additions and 1 deletions

View File

@ -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'