X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lib%2FHTML%2FCalendarMonth%2FDateTool%2FDateCalc.pm;fp=lib%2FHTML%2FCalendarMonth%2FDateTool%2FDateCalc.pm;h=90612f6f2cc476200c98404a0b7be334d4ef8b65;hb=9a2930defe8c992ecc154a1056314997f4b19fae;hp=17c3ed5dea5c9c5cb032b138baaa14cf591e1649;hpb=946f3ae86f85cbd6b9c9d00b504bac234433184e;p=deb_pkgs%2Flibhtml-calendarmonth-perl.git diff --git a/lib/HTML/CalendarMonth/DateTool/DateCalc.pm b/lib/HTML/CalendarMonth/DateTool/DateCalc.pm index 17c3ed5..90612f6 100644 --- a/lib/HTML/CalendarMonth/DateTool/DateCalc.pm +++ b/lib/HTML/CalendarMonth/DateTool/DateCalc.pm @@ -9,7 +9,7 @@ use vars qw(@ISA $VERSION); @ISA = qw(HTML::CalendarMonth::DateTool); -$VERSION = '0.02'; +$VERSION = '0.03'; use Date::Calc qw(Days_in_Month Day_of_Week Add_Delta_Days Weeks_in_Year Week_of_Year Week_Number Mktime @@ -45,7 +45,7 @@ sub dow { sub add_days { my($self, $delta, $day, $month, $year) = @_; - $delta || croak "Delta (in days) required.\n"; + defined $delta || croak "Delta (in days) required.\n"; $day || croak "Day required.\n"; $month ||= $self->month; $year ||= $self->year;