is empty check
This commit is contained in:
@@ -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'], '')
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user