mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
Merge branch '3.2.x'
* 3.2.x: [ticket/15146] Date profile field validation incorrect
This commit is contained in:
commit
f579e75be0
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ class type_date extends type_base
|
||||||
}
|
}
|
||||||
|
|
||||||
$profile_row['s_year_options'] = '<option value="0"' . ((!$year) ? ' selected="selected"' : '') . '>--</option>';
|
$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>";
|
$profile_row['s_year_options'] .= '<option value="' . $i . '"' . (($i == $year) ? ' selected="selected"' : '') . ">$i</option>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue