From 71a3f12d2ad361ce2907f20a14a70095a162e470 Mon Sep 17 00:00:00 2001 From: javiexin Date: Fri, 24 Mar 2017 23:55:27 +0100 Subject: [PATCH] [ticket/15146] Date profile field validation incorrect Fix by changing select input field options to match validation range PHPBB3-15146 --- phpBB/phpbb/profilefields/type/type_date.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] = ''; - for ($i = $now['year'] - 100; $i <= $now['year'] + 100; $i++) + for ($i = 1901; $i <= $now['year'] + 50; $i++) { $profile_row['s_year_options'] .= '"; }