aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorjaviexin <javiexin@gmail.com>2017-03-24 23:55:27 +0100
committerjaviexin <javiexin@gmail.com>2017-03-24 23:55:27 +0100
commit71a3f12d2ad361ce2907f20a14a70095a162e470 (patch)
treed4b1564c484b4b51cca7d8d580db6dc516fd6530 /phpBB/phpbb
parent3322117c3863c443ca1b79d25541bde4c662c0ed (diff)
downloadforums-71a3f12d2ad361ce2907f20a14a70095a162e470.tar
forums-71a3f12d2ad361ce2907f20a14a70095a162e470.tar.gz
forums-71a3f12d2ad361ce2907f20a14a70095a162e470.tar.bz2
forums-71a3f12d2ad361ce2907f20a14a70095a162e470.tar.xz
forums-71a3f12d2ad361ce2907f20a14a70095a162e470.zip
[ticket/15146] Date profile field validation incorrect
Fix by changing select input field options to match validation range PHPBB3-15146
Diffstat (limited to 'phpBB/phpbb')
-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>";
}