diff options
author | friendica <info@friendica.com> | 2014-05-01 18:40:00 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-01 18:40:00 -0700 |
commit | a39a1584bd6ebe5538af6be0f88ad06dd0e8033d (patch) | |
tree | 9d29fabdecfdceada99dd856a39727102938d705 /mod | |
parent | a8322ba1f65d3cc82678103d86ac924fb6581e5e (diff) | |
download | volse-hubzilla-a39a1584bd6ebe5538af6be0f88ad06dd0e8033d.tar.gz volse-hubzilla-a39a1584bd6ebe5538af6be0f88ad06dd0e8033d.tar.bz2 volse-hubzilla-a39a1584bd6ebe5538af6be0f88ad06dd0e8033d.zip |
allow birthdays with just a year (no month or day).
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profiles.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/profiles.php b/mod/profiles.php index 720721e92..481680a12 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -190,9 +190,9 @@ function profiles_post(&$a) { if(($day > $mtab[$month]) || ($day < 0)) $day = 0; - if($year && (! ($month && $day))) { - $month = 1; $day = 1; - } +// if($year && (! ($month && $day))) { +// $month = 1; $day = 1; +// } $dob = '0000-00-00'; $dob = sprintf('%04d-%02d-%02d',$year,$month,$day); |