Bug 6323 -- Error handling cleanup for moveitem.tt
[koha.git] / cataloguing / addbooks.pl
index 270b16d..b768a29 100755 (executable)
@@ -86,7 +86,7 @@ if ($query) {
     # format output
     # SimpleSearch() give the results per page we want, so 0 offet here
     my $total = @{$marcresults};
-    my @newresults = searchResults( 'intranet', $query, $total, $results_per_page, 0, 0, @{$marcresults} );
+    my @newresults = searchResults( 'intranet', $query, $total, $results_per_page, 0, 0, $marcresults );
     foreach my $line (@newresults) {
         if ( not exists $line->{'size'} ) { $line->{'size'} = "" }
     }