@@ -, +, @@ --- C4/Recommendations.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/C4/Recommendations.pm +++ a/C4/Recommendations.pm @@ -183,7 +183,7 @@ LIMIT ? $sth->execute($biblionumber, $limit); push @{ $res }, @{$sth->fetchall_arrayref({})}; - $res = \@{ @{$res}[0..$limit] } if (@$res > $limit); + $res = [ @{$res}[0..$limit] ] if (@$res > $limit); my @res = sort { $b->{hit_count} <=> $a->{hit_count} } @$res; return \@res; --