Skip to content

Commit

Permalink
Show unknown birth date as elipsis in lifespan
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Aug 16, 2023
1 parent 43b4e42 commit cce0041
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Individual.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,10 @@ public function lifespan(): string
$birth_year = $this->getBirthDate()->minimumDate()->format('%Y');
$death_year = $this->getDeathDate()->maximumDate()->format('%Y');

if ($birth_year === '') {
$birth_year = I18N::translate('');
}

if ($death_year === '' && $this->isDead()) {
$death_year = I18N::translate('');
}
Expand Down

0 comments on commit cce0041

Please sign in to comment.