Bug Fixing 1782 patch
[koha.git] / members / readingrec.pl
index 5d737d1..86564bf 100755 (executable)
@@ -77,9 +77,7 @@ for (my $i=0;$i<$count;$i++){
        push(@loop_reading,\%line);
 }
 
-       my $borrowercategory = GetBorrowercategory( $data->{'categorycode'} );
-       my $category_type = $borrowercategory->{'category_type'};
-       ( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' );
+$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' );
 if (! $limit){ 
        $limit = 'full'; 
 }