diff options
author | zotlabs <mike@macgirvin.com> | 2018-02-28 21:39:52 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-02-28 21:39:52 -0800 |
commit | 6210b7727f6c8542daaa62d1ed7f9ec1f74323f2 (patch) | |
tree | 129a67cbed69c4ed6f286e9a0bf3770b9c82ffc6 | |
parent | 01015bc0d54343831189ce1b09a69b70a6371fd5 (diff) | |
download | volse-hubzilla-6210b7727f6c8542daaa62d1ed7f9ec1f74323f2.tar.gz volse-hubzilla-6210b7727f6c8542daaa62d1ed7f9ec1f74323f2.tar.bz2 volse-hubzilla-6210b7727f6c8542daaa62d1ed7f9ec1f74323f2.zip |
profile edit: empty dob is set to the date of the first profile save unless you clear it first
-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')); |