X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=Koha%2FCalendar.pm;h=bdd4b8f06a85e69146b8ae8209c0718f9042def7;hb=822f898f66ddc0f77894c3a3494f6e104e3aa745;hp=91f83286a534d22f3e48db6769e46d9c3f0fa49b;hpb=0a2b32675f9672c02d2a9c1ab47b5ae88f41e363;p=koha.git 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;