]> git.mxchange.org Git - friendica.git/commitdiff
is empty check
authorirhen <irhen@users.noreply.github.com>
Mon, 10 Jul 2017 11:17:06 +0000 (14:17 +0300)
committerGitHub <noreply@github.com>
Mon, 10 Jul 2017 11:17:06 +0000 (14:17 +0300)
include/identity.php

index 66f7f569f99a5333fecd56fa79b209d80b30fc16..5de5c919dc7f1f494b985846c735468d30c4567e 100644 (file)
@@ -656,7 +656,7 @@ function advanced_profile(App $a) {
                        $profile['birthday'] = array( t('Birthday:'), $val);
 
                }
-               if ($a->profile['dob']
+               if (!empty($a->profile['dob'])
                        && $a->profile['dob'] > '0001-01-01'
                        && $age = age($a->profile['dob'], $a->profile['timezone'], '')
                ) {