From 0e364bc6266c192a2bc5e0e4d2edd996e610450b Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 9 Jun 2022 14:26:33 +0000 Subject: [PATCH] Bug 18064: (follow-up) Get libraries as a list --- misc/cronjobs/longoverdue.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/longoverdue.pl b/misc/cronjobs/longoverdue.pl index b4cd403a16..68aceb50ea 100755 --- a/misc/cronjobs/longoverdue.pl +++ b/misc/cronjobs/longoverdue.pl @@ -325,7 +325,7 @@ sub get_number_of_holidays { $start_date = dt_from_string($start_date); $end_date = dt_from_string($end_date); - my @branches = Koha::Libraries->search( {}, { order_by => ['branchcode'] } ); + my @branches = Koha::Libraries->search( {}, { order_by => ['branchcode'] } )->as_list; my $calendar; foreach my $branch ( @branches ) { -- 2.30.2