aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2017-04-19 22:52:55 +0200
committerTristan Darricau <github@nicofuma.fr>2017-04-19 22:52:55 +0200
commit8ae7d2495c610b08355b8660bd5174cbd93f669b (patch)
treea8234fcc6af6c64da9b8124e2cf41735d7ac435f
parent8d8886e7ba73bf9e1c76d51348044238ccf5bb04 (diff)
parent71a3f12d2ad361ce2907f20a14a70095a162e470 (diff)
downloadforums-8ae7d2495c610b08355b8660bd5174cbd93f669b.tar
forums-8ae7d2495c610b08355b8660bd5174cbd93f669b.tar.gz
forums-8ae7d2495c610b08355b8660bd5174cbd93f669b.tar.bz2
forums-8ae7d2495c610b08355b8660bd5174cbd93f669b.tar.xz
forums-8ae7d2495c610b08355b8660bd5174cbd93f669b.zip
Merge pull request #4763 from javiexin/ticket/15146
[ticket/15146] Date profile field validation incorrect * github.com:phpbb/phpbb: [ticket/15146] Date profile field validation incorrect
-rw-r--r--phpBB/phpbb/profilefields/type/type_date.php2
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 90ac9a6703..63a0c79a3d 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>";
}