"dob" is not a date field, so the changes are reverted

This commit is contained in:
Michael 2017-03-18 08:50:27 +00:00
parent e301fa0832
commit a2a171af06
5 changed files with 10 additions and 10 deletions

View file

@ -628,7 +628,7 @@ function advanced_profile(App $a) {
if($a->profile['gender']) $profile['gender'] = array( t('Gender:'), $a->profile['gender'] );
if(($a->profile['dob']) && ($a->profile['dob'] > '0001-01-01')) {
if(($a->profile['dob']) && ($a->profile['dob'] != '0000-00-00')) {
$year_bd_format = t('j F, Y');
$short_bd_format = t('j F');