Merge pull request #671 from pafcu/master

Fix problem with default birth date
This commit is contained in:
jeroenpraat 2014-10-31 16:49:48 +01:00
commit f294962290

View file

@ -134,7 +134,10 @@ function dob($dob) {
if(! $f)
$f = 'ymd';
$o = datesel($f,mktime(0,0,0,0,0,1900),mktime(),mktime(0,0,0,$month,$day,$year),'dob');
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;
}