Bug #6082 - On aqbudgets.pl bug on the Statistic's combobox
authorAlex Arnaud <alex.arnaud@biblibre.com>
Thu, 7 Apr 2011 09:59:22 +0000 (11:59 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 7 Apr 2011 22:45:02 +0000 (10:45 +1200)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Koha.pm

index 0836669..95244bd 100644 (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;