diff --git a/include/identity.php b/include/identity.php index a6db963dd..66f7f569f 100644 --- a/include/identity.php +++ b/include/identity.php @@ -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 ($a->profile['dob'] + && $a->profile['dob'] > '0001-01-01' + && $age = age($a->profile['dob'], $a->profile['timezone'], '') + ) { $profile['age'] = array( t('Age:'), $age ); }