1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-22 16:40:21 +01:00

Merge branch '3.2.x'

* 3.2.x:
  [ticket/15146] Date profile field validation incorrect
This commit is contained in:
Tristan Darricau 2017-04-19 22:53:00 +02:00
commit f579e75be0
No known key found for this signature in database
GPG Key ID: 817043C2E29DB881

View File

@ -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>";
}