diff options
author | Tristan Darricau <github@nicofuma.fr> | 2017-04-19 22:52:56 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2017-04-19 22:52:56 +0200 |
commit | 3661398a78a13867b97e01560ce968052db65329 (patch) | |
tree | 1b4be0b4fb7e958b094709cf082cfedae295f803 /phpBB/phpbb/profilefields | |
parent | fc39aa8d718595743984993d106ddc7cb0d2f1aa (diff) | |
parent | 8ae7d2495c610b08355b8660bd5174cbd93f669b (diff) | |
download | forums-3661398a78a13867b97e01560ce968052db65329.tar forums-3661398a78a13867b97e01560ce968052db65329.tar.gz forums-3661398a78a13867b97e01560ce968052db65329.tar.bz2 forums-3661398a78a13867b97e01560ce968052db65329.tar.xz forums-3661398a78a13867b97e01560ce968052db65329.zip |
Merge branch '3.1.x' into 3.2.x
* 3.1.x:
[ticket/15146] Date profile field validation incorrect
Diffstat (limited to 'phpBB/phpbb/profilefields')
-rw-r--r-- | phpBB/phpbb/profilefields/type/type_date.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/profilefields/type/type_date.php b/phpBB/phpbb/profilefields/type/type_date.php index 139ceabeec..5a1a6dbd5c 100644 --- a/phpBB/phpbb/profilefields/type/type_date.php +++ b/phpBB/phpbb/profilefields/type/type_date.php @@ -264,7 +264,7 @@ class type_date extends type_base } $profile_row['s_year_options'] = '<option value="0"' . ((!$year) ? ' selected="selected"' : '') . '>--</option>'; - for ($i = $now['year'] - 100; $i <= $now['year'] + 100; $i++) + for ($i = 1901; $i <= $now['year'] + 50; $i++) { $profile_row['s_year_options'] .= '<option value="' . $i . '"' . (($i == $year) ? ' selected="selected"' : '') . ">$i</option>"; } |