is empty check

This commit is contained in:
irhen 2017-07-10 14:17:06 +03:00 committed by GitHub
parent 534f79a5a5
commit c6137ca0df
1 changed files with 1 additions and 1 deletions

View 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'], '')
) {