From: irhen Date: Sat, 8 Jul 2017 20:30:30 +0000 (+0300) Subject: fix big age X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=534f79a5a5f869658bea7a7219b22ae06fcc951c;p=friendica.git fix big age --- diff --git a/include/identity.php b/include/identity.php index a6db963ddf..66f7f569f9 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 ); }