diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-03-04 06:45:07 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-03-04 06:45:07 -0500 |
commit | 058f7277b52bdcdb80dc3e28bf0ec93a573195a7 (patch) | |
tree | 32ca12ca4eb390396e429b1e86fd79de614f2551 /include/datetime.php | |
parent | 39fe80a196ee626dda15b5b844dd1d05893f7646 (diff) | |
parent | 471c3c4d068d1c6d4e149098d400d792fb3550a6 (diff) | |
download | volse-hubzilla-058f7277b52bdcdb80dc3e28bf0ec93a573195a7.tar.gz volse-hubzilla-058f7277b52bdcdb80dc3e28bf0ec93a573195a7.tar.bz2 volse-hubzilla-058f7277b52bdcdb80dc3e28bf0ec93a573195a7.zip |
Merge branch 'dev' into oauth2
Diffstat (limited to 'include/datetime.php')
-rw-r--r-- | include/datetime.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/datetime.php b/include/datetime.php index 1e9a1fa51..766c90d16 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -125,7 +125,7 @@ function datetime_convert($from = 'UTC', $to = 'UTC', $s = 'now', $fmt = "Y-m-d */ function dob($dob) { - if ($dob === '0000-00-00') + if ($dob === '0000-00-00' || $dob === '') $value = ''; else $value = (($year) ? datetime_convert('UTC','UTC',$dob,'Y-m-d') : datetime_convert('UTC','UTC',$dob,'m-d')); |