diff options
| author | Greg Roach <fisharebest@gmail.com> | 2014-09-21 13:45:20 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2014-09-21 13:45:20 +0100 |
| commit | 43d20c6b6dc9e0a57bf3b5358f615606577877cb (patch) | |
| tree | 26ee70cf3ef91f9f4e33de8be60711f33ce35b4e /calendar.php | |
| parent | dd39d1d6dd5a09f781272999b85dc92e5a783d8e (diff) | |
| download | webtrees-43d20c6b6dc9e0a57bf3b5358f615606577877cb.tar.gz webtrees-43d20c6b6dc9e0a57bf3b5358f615606577877cb.tar.bz2 webtrees-43d20c6b6dc9e0a57bf3b5358f615606577877cb.zip | |
Cannot calculate days in month for dates with no year
Diffstat (limited to 'calendar.php')
| -rw-r--r-- | calendar.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar.php b/calendar.php index 369b36d6a3..0cff84affa 100644 --- a/calendar.php +++ b/calendar.php @@ -345,7 +345,7 @@ case 'calendar': for ($jd=$cal_date->minJD; $jd<=$cal_date->maxJD; ++$jd) foreach (apply_filter(get_anniversary_events($jd, $events), $filterof, $filtersx) as $fact) { $tmp=$fact->getDate()->MinDate(); - if ($tmp->d>=1 && $tmp->d<=$tmp->DaysInMonth()) { + if ($tmp->d>=1 && $tmp->y && $tmp->d<=$tmp->DaysInMonth()) { $d=$jd-$cal_date->minJD+1; } else { $d=0; |
