From: Colin Campbell Date: Thu, 23 Jun 2011 08:39:38 +0000 (+0100) Subject: Bug 5549 : Calendar needed a change array_ref to hash_ref X-Git-Url: http://git.rot13.org/?p=koha.git;a=commitdiff_plain;h=822f898f66ddc0f77894c3a3494f6e104e3aa745 Bug 5549 : Calendar needed a change array_ref to hash_ref --- 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;