mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 17:15:13 +00:00
Merge pull request #671 from pafcu/master
Fix problem with default birth date
This commit is contained in:
commit
f294962290
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue