is empty check
This commit is contained in:
parent
534f79a5a5
commit
c6137ca0df
1 changed files with 1 additions and 1 deletions
|
@ -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'], '')
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue