From a358598d9c2a465c68201089d7c43d950748ed3f Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Thu, 7 Apr 2011 11:59:22 +0200 Subject: [PATCH] Bug #6082 - On aqbudgets.pl bug on the Statistic's combobox Signed-off-by: Katrin Fischer Signed-off-by: Chris Cormack (cherry picked from commit 22dc04e24c9af810672ee8f6e313316f3bcc9a59) Signed-off-by: Chris Nighswonger --- C4/Koha.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Koha.pm b/C4/Koha.pm index 5ac3f249e4..fc50628353 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -1028,7 +1028,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; -- 2.39.5