Some standards

This commit is contained in:
Michael 2017-03-18 12:13:43 +00:00
parent 222550e784
commit 1a436264cd
5 changed files with 5 additions and 5 deletions

View File

@ -171,7 +171,7 @@ function dob($dob) {
$f = get_config('system','birthday_input_format');
if(! $f)
$f = 'ymd';
if($dob == '0000-00-00')
if($dob === '0000-00-00')
$value = '';
else
$value = (($year) ? datetime_convert('UTC','UTC',$dob,'Y-m-d') : datetime_convert('UTC','UTC',$dob,'m-d'));