diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 5f9416fc50..05a2d14140 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -596,7 +596,7 @@ if ( $query->param('audit') ) { my $audit_errors = Koha::Database::DataInconsistency->for_biblio($biblio); $template->param( auditing => 1, - audit_errors => [ map { scalar @{ $audit_errors->{$_} } ? $audit_errors->{$_} : () } keys %$audit_errors ], + audit_errors => [ map { scalar @{ $audit_errors->{$_} } ? @{ $audit_errors->{$_} } : () } keys %$audit_errors ], ); }