summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-09-07 15:28:52 +0100
committerGreg Roach <greg@subaqua.co.uk>2022-09-07 15:28:52 +0100
commit5442f1410722fe1fa32ec3696d7ab3565043b847 (patch)
tree916457776f7ff013cc3b566348b12ee86d70eb67 /resources
parent60dee0e82b10cd42321193e25fa49f69be26d9f4 (diff)
downloadwebtrees-5442f1410722fe1fa32ec3696d7ab3565043b847.tar.gz
webtrees-5442f1410722fe1fa32ec3696d7ab3565043b847.tar.bz2
webtrees-5442f1410722fe1fa32ec3696d7ab3565043b847.zip
Fix: #4551 - strict type error
Diffstat (limited to 'resources')
-rw-r--r--resources/views/modules/relatives/family.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/views/modules/relatives/family.phtml b/resources/views/modules/relatives/family.phtml
index ec71e7012e..e97af17b59 100644
--- a/resources/views/modules/relatives/family.phtml
+++ b/resources/views/modules/relatives/family.phtml
@@ -192,7 +192,7 @@ use Fisharebest\Webtrees\Services\RelationshipService;
<?php $months = intdiv($days + 15, 30); ?>
<?php if (abs($months) === 12 || abs($months) >= 24) : ?>
- <?= I18N::plural('%s year', '%s years', round($months / 12), I18N::number(round($months / 12))) ?>
+ <?= I18N::plural('%s year', '%s years', intdiv($months, 12), I18N::number(round($months / 12))) ?>
<?php elseif ($months !== 0) : ?>
<?= I18N::plural('%s month', '%s months', $months, I18N::number($months)) ?>
<?php endif ?>