Merge pull request #671 from pafcu/master
Fix problem with default birth date
This commit is contained in:
commit
f294962290
@ -134,7 +134,10 @@ function dob($dob) {
|
||||
if(! $f)
|
||||
$f = 'ymd';
|
||||
|
||||
if ($dob && $dob != '0000-00-00')
|
||||
$o = datesel($f,mktime(0,0,0,0,0,1900),mktime(),mktime(0,0,0,$month,$day,$year),'dob');
|
||||
else
|
||||
$o = datesel($f,mktime(0,0,0,0,0,1900),mktime(),false,'dob');
|
||||
|
||||
return $o;
|
||||
}
|
||||
|
Reference in New Issue
Block a user