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