Bug 5549 : Calendar needed a change array_ref to hash_ref
authorColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 23 Jun 2011 08:39:38 +0000 (09:39 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 20 Mar 2012 00:23:44 +0000 (13:23 +1300)
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;