Bug #6082 - On aqbudgets.pl bug on the Statistic's combobox

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Alex Arnaud 2011-04-07 11:59:22 +02:00 committed by Chris Cormack
parent e5ff05857e
commit 22dc04e24c

View file

@ -1051,7 +1051,7 @@ sub GetAuthorisedValueCategories {
my $sth = $dbh->prepare("SELECT DISTINCT category FROM authorised_values ORDER BY category");
$sth->execute;
my @results;
while (my $category = $sth->fetchrow_array) {
while (defined (my $category = $sth->fetchrow_array) ) {
push @results, $category;
}
return \@results;