diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-03-12 16:22:15 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-03-12 16:22:15 +0000 |
commit | 9d78487f96258b87e1dc61335e21a5fa6a3b9352 (patch) | |
tree | 405798eba9d3a515b24aa63bd9687936bf3795d2 | |
parent | 355c62cd3c56d70220fadca01c1554c8fcd0b114 (diff) | |
download | forums-9d78487f96258b87e1dc61335e21a5fa6a3b9352.tar forums-9d78487f96258b87e1dc61335e21a5fa6a3b9352.tar.gz forums-9d78487f96258b87e1dc61335e21a5fa6a3b9352.tar.bz2 forums-9d78487f96258b87e1dc61335e21a5fa6a3b9352.tar.xz forums-9d78487f96258b87e1dc61335e21a5fa6a3b9352.zip |
correct birthday value (int -> string)
git-svn-id: file:///svn/phpbb/trunk@7176 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/install/convertors/functions_phpbb20.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/install/convertors/functions_phpbb20.php b/phpBB/install/convertors/functions_phpbb20.php index 512f0598be..d7054b71e4 100644 --- a/phpBB/install/convertors/functions_phpbb20.php +++ b/phpBB/install/convertors/functions_phpbb20.php @@ -400,18 +400,16 @@ function phpbb_set_default_encoding($text) */ function phpbb_get_birthday($birthday = '') { - $birthday = (int) $birthday; - if (defined('MOD_BIRTHDAY_TERRA')) { + $birthday = (string) $birthday; + // stored as month, day, year if (!$birthday) { return ' 0- 0- 0'; } - $birthday = (string) $birthday; - $month = substr($birthday, 0, 2); $day = substr($birthday, 2, 2); $year = substr($birthday, -4); @@ -420,6 +418,8 @@ function phpbb_get_birthday($birthday = '') } else { + $birthday = (int) $birthday; + if (!$birthday || $birthday == 999999 || $birthday < 0) { return ' 0- 0- 0'; |