From e0a9b15689b7c5e1c9a96e32adf5ff787766c1db Mon Sep 17 00:00:00 2001
From: Alex Arnaud <alex.arnaud@biblibre.com>
Date: Wed, 6 Apr 2011 12:04:16 +0200
Subject: [PATCH] [SIGNED-OFF] Bug #6082 - On aqbudgets.pl bug on the Statistic's combobox
Content-Type: text/plain; charset="utf-8"

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
---
 C4/Koha.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Koha.pm b/C4/Koha.pm
index 0836669..95244bd 100644
--- a/C4/Koha.pm
+++ b/C4/Koha.pm
@@ -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;
-- 
1.7.1