Bug 5549 : Calendar needed a change array_ref to hash_ref
[koha.git] / Koha / Calendar.pm
index 91f8328..bdd4b8f 100644 (file)
@@ -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;