1
1
Fork 0

fix big age

This commit is contained in:
irhen 2017-07-08 23:30:30 +03:00 committed by GitHub
parent 8863f0e234
commit 534f79a5a5

View file

@ -656,8 +656,10 @@ function advanced_profile(App $a) {
$profile['birthday'] = array( t('Birthday:'), $val); $profile['birthday'] = array( t('Birthday:'), $val);
} }
if ($a->profile['dob']
if ($age = age($a->profile['dob'],$a->profile['timezone'],'')) { && $a->profile['dob'] > '0001-01-01'
&& $age = age($a->profile['dob'], $a->profile['timezone'], '')
) {
$profile['age'] = array( t('Age:'), $age ); $profile['age'] = array( t('Age:'), $age );
} }