diff options
author | Thomas Willingham <founder@kakste.com> | 2013-07-10 19:30:10 +0100 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-07-10 19:30:10 +0100 |
commit | 085be3a16f704a3f89bbe4d795c9ca915cc26e8a (patch) | |
tree | cd0a1b608630d5e819df221ed84a0fbd3755fc2f /mod/profiles.php | |
parent | d065135d909bf876f4c305d303de7642657f7e3e (diff) | |
parent | 72d737cc82f5987791c9ceba0c8b99a505886274 (diff) | |
download | volse-hubzilla-085be3a16f704a3f89bbe4d795c9ca915cc26e8a.tar.gz volse-hubzilla-085be3a16f704a3f89bbe4d795c9ca915cc26e8a.tar.bz2 volse-hubzilla-085be3a16f704a3f89bbe4d795c9ca915cc26e8a.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'mod/profiles.php')
-rw-r--r-- | mod/profiles.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/profiles.php b/mod/profiles.php index 28d8dd973..173d97138 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -200,6 +200,11 @@ function profiles_post(&$a) { $day = intval($_POST['day']); if(($day > $mtab[$month]) || ($day < 0)) $day = 0; + + if($year && (! ($month && $day))) { + $month = 1; $day = 1; + } + $dob = '0000-00-00'; $dob = sprintf('%04d-%02d-%02d',$year,$month,$day); |