diff --git a/Koha/BackgroundJob.pm b/Koha/BackgroundJob.pm index 0b1b36de50..d375dfa0d5 100644 --- a/Koha/BackgroundJob.pm +++ b/Koha/BackgroundJob.pm @@ -167,7 +167,7 @@ sub messages { @messages = @{ $data_dump->{messages} }; } - return @messages; + return \@messages; } =head3 report