Bug 13223: Plugin housekeeping: do not redefine wrapper
[srvgit] / Koha / Calendar.pm
index f982ff4..6013a25 100644 (file)
@@ -167,6 +167,8 @@ sub addDays {
     my ( $self, $startdate, $days_duration ) = @_;
     my $base_date = $startdate->clone();
 
+    $self->{days_mode} ||= q{};
+
     if ( $self->{days_mode} eq 'Calendar' ) {
         # use the calendar to skip all days the library is closed
         # when adding