Merge pull request #3573 from irhen/issue-3529-fix-mega-age
fix big age
This commit is contained in:
commit
ef3398f09a
1 changed files with 4 additions and 2 deletions
|
@ -656,8 +656,10 @@ function advanced_profile(App $a) {
|
|||
$profile['birthday'] = array( t('Birthday:'), $val);
|
||||
|
||||
}
|
||||
|
||||
if ($age = age($a->profile['dob'],$a->profile['timezone'],'')) {
|
||||
if (!empty($a->profile['dob'])
|
||||
&& $a->profile['dob'] > '0001-01-01'
|
||||
&& $age = age($a->profile['dob'], $a->profile['timezone'], '')
|
||||
) {
|
||||
$profile['age'] = array( t('Age:'), $age );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue