From 534f79a5a5f869658bea7a7219b22ae06fcc951c Mon Sep 17 00:00:00 2001 From: irhen Date: Sat, 8 Jul 2017 23:30:30 +0300 Subject: [PATCH] fix big age --- include/identity.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ); }