From 822f898f66ddc0f77894c3a3494f6e104e3aa745 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Thu, 23 Jun 2011 09:39:38 +0100 Subject: [PATCH] Bug 5549 : Calendar needed a change array_ref to hash_ref --- Koha/Calendar.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm index 91f83286a5..bdd4b8f06a 100644 --- a/Koha/Calendar.pm +++ b/Koha/Calendar.pm @@ -43,7 +43,7 @@ sub _init { $self->{weekly_closed_days}->[ $tuple->{weekday} ] = 1; } $repeat_sth->execute( $branch, 1 ); - $self->{day_month_closed_days} = []; + $self->{day_month_closed_days} = {}; while ( my $tuple = $repeat_sth->fetchrow_hashref ) { $self->{day_month_closed_days}->{ $tuple->{day} }->{ $tuple->{month} } = 1; -- 2.39.5