mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-13 12:22:03 +02:00
[ticket/15146] Date profile field validation incorrect
Fix by changing select input field options to match validation range PHPBB3-15146
This commit is contained in:
parent
3322117c38
commit
71a3f12d2a
@ -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>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user