is empty check
This commit is contained in:
parent
534f79a5a5
commit
c6137ca0df
|
@ -656,7 +656,7 @@ function advanced_profile(App $a) {
|
||||||
$profile['birthday'] = array( t('Birthday:'), $val);
|
$profile['birthday'] = array( t('Birthday:'), $val);
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($a->profile['dob']
|
if (!empty($a->profile['dob'])
|
||||||
&& $a->profile['dob'] > '0001-01-01'
|
&& $a->profile['dob'] > '0001-01-01'
|
||||||
&& $age = age($a->profile['dob'], $a->profile['timezone'], '')
|
&& $age = age($a->profile['dob'], $a->profile['timezone'], '')
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue