Skip to content

Commit

Permalink
Bugfix (events without dates)
Browse files Browse the repository at this point in the history
  • Loading branch information
ric2016 committed Jun 20, 2020
1 parent 228401c commit 3713cb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ExtendedRelationshipModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,9 @@ public function hFactsTabGetOutputForAssoRel(
}
$beforeJD = null;
if ($mode > 9) {
$beforeJD = $event->date()->minimumJulianDay() + $offset;
if ($event->date()->minimumJulianDay() > 0) {
$beforeJD = $event->date()->minimumJulianDay() + $offset;
} //else event without (proper) date
$mode = $mode - 10;
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This is a webtrees 2.x module - It cannot be used with webtrees 1.x. For its web

### Download<a name="download"/>

* Current version: 2.0.6.0.0
* Current version: 2.0.6.0.1
* Based on and tested with webtrees 2.0.6. Cannot be used with webtrees 1.x. May not work with earlier 2.x versions!
* Requires the ⚶ Vesta Common module ('vesta_common').
* Displays data via the ⚶ Vesta Families module ('vesta_families').
Expand Down
2 changes: 1 addition & 1 deletion latest-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.6.0.0
2.0.6.0.1

0 comments on commit 3713cb5

Please sign in to comment.