diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2017-04-19 22:52:55 +0200 | 
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2017-04-19 22:52:55 +0200 | 
| commit | 8ae7d2495c610b08355b8660bd5174cbd93f669b (patch) | |
| tree | a8234fcc6af6c64da9b8124e2cf41735d7ac435f | |
| parent | 8d8886e7ba73bf9e1c76d51348044238ccf5bb04 (diff) | |
| parent | 71a3f12d2ad361ce2907f20a14a70095a162e470 (diff) | |
| download | forums-8ae7d2495c610b08355b8660bd5174cbd93f669b.tar forums-8ae7d2495c610b08355b8660bd5174cbd93f669b.tar.gz forums-8ae7d2495c610b08355b8660bd5174cbd93f669b.tar.bz2 forums-8ae7d2495c610b08355b8660bd5174cbd93f669b.tar.xz forums-8ae7d2495c610b08355b8660bd5174cbd93f669b.zip  | |
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
| -rw-r--r-- | phpBB/phpbb/profilefields/type/type_date.php | 2 | 
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>";  		}  | 
