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
This commit is contained in:
Tristan Darricau 2017-04-19 22:52:55 +02:00
commit 8ae7d2495c
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>'; $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>";
} }