From 9b494dbcacd662510d935545357ee7f58e76dce6 Mon Sep 17 00:00:00 2001 From: Chris Smith <toonarmy@phpbb.com> Date: Tue, 2 Sep 2008 12:12:30 +0000 Subject: Allow setting birth year to current year git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8807 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/ucp/ucp_profile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index 8aacf8a244..7fdb25abfd 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -418,7 +418,7 @@ class ucp_profile $now = getdate(); $s_birthday_year_options = '<option value="0"' . ((!$data['bday_year']) ? ' selected="selected"' : '') . '>--</option>'; - for ($i = $now['year'] - 100; $i < $now['year']; $i++) + for ($i = $now['year'] - 100; $i <= $now['year']; $i++) { $selected = ($i == $data['bday_year']) ? ' selected="selected"' : ''; $s_birthday_year_options .= "<option value=\"$i\"$selected>$i</option>"; @@ -633,4 +633,4 @@ class ucp_profile } } -?> \ No newline at end of file +?> -- cgit v1.2.1