diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-10-05 20:07:25 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-10-05 20:07:25 +0100 |
| commit | 14c3fbd5ccea078c5ab261f23771631af58b0496 (patch) | |
| tree | df78bb23fa77a007207078ddb91e18aaa204fe73 /modules_v3 | |
| parent | d85e27bc83c4fa50299becdb0d6e389b90f0f9b3 (diff) | |
| download | webtrees-14c3fbd5ccea078c5ab261f23771631af58b0496.tar.gz webtrees-14c3fbd5ccea078c5ab261f23771631af58b0496.tar.bz2 webtrees-14c3fbd5ccea078c5ab261f23771631af58b0496.zip | |
Fix: undefined variable
Diffstat (limited to 'modules_v3')
| -rw-r--r-- | modules_v3/relatives/module.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules_v3/relatives/module.php b/modules_v3/relatives/module.php index 0fe7d7986d..6052ca208f 100644 --- a/modules_v3/relatives/module.php +++ b/modules_v3/relatives/module.php @@ -58,7 +58,7 @@ class relatives_WT_Module extends WT_Module implements WT_Module_Tab { $months = round($days * 12 / 365.25); // Approximate - we do not know the calendar if (abs($months)==12 || abs($months)>=24) { $diff .= WT_I18N::plural('%d year', '%d years', round($months / 12), round($months / 12)); - } elseif ($gap!=0) { + } elseif ($months!=0) { $diff .= WT_I18N::plural('%d month', '%d months', $months, $months); } |
