minor code rewritte
This commit is contained in:
parent
43e23a2ca9
commit
f5583efd7b
|
|
@ -125,18 +125,13 @@ sub Getoverdues {
|
|||
);
|
||||
$sth->execute;
|
||||
|
||||
# FIXME - Use push @results
|
||||
my $i = 0;
|
||||
my @results;
|
||||
while ( my $data = $sth->fetchrow_hashref ) {
|
||||
$results[$i] = $data;
|
||||
$i++;
|
||||
push @results, $data;
|
||||
}
|
||||
$sth->finish;
|
||||
|
||||
# print @results;
|
||||
# FIXME - Bogus API.
|
||||
return ( $i, \@results );
|
||||
return \@results;
|
||||
}
|
||||
|
||||
=head2 checkoverdues
|
||||
|
|
|
|||
Loading…
Reference in New Issue