]> git.mxchange.org Git - friendica.git/commitdiff
fix big age
authorirhen <irhen@users.noreply.github.com>
Sat, 8 Jul 2017 20:30:30 +0000 (23:30 +0300)
committerGitHub <noreply@github.com>
Sat, 8 Jul 2017 20:30:30 +0000 (23:30 +0300)
include/identity.php

index a6db963ddfcc317e42d045c44e6af2758ebd28af..66f7f569f99a5333fecd56fa79b209d80b30fc16 100644 (file)
@@ -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 );
                }