diff options
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index 82234084da..9326e41427 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -340,11 +340,16 @@ class ucp_profile $error = preg_replace('#^([A-Z_]+)$#e', "(!empty(\$user->lang['\\1'])) ? \$user->lang['\\1'] : '\\1'", $error); } - $bday_day = $bday_month = $bday_year = 0; - - if ($user->data['user_birthday']) + if (!isset($bday_day)) { - list($bday_day, $bday_month, $bday_year) = explode('-', $user->data['user_birthday']); + if ($user->data['user_birthday']) + { + list($bday_day, $bday_month, $bday_year) = explode('-', $user->data['user_birthday']); + } + else + { + $bday_day = $bday_month = $bday_year = 0; + } } $s_birthday_day_options = '<option value="0"' . ((!$bday_day) ? ' selected="selected"' : '') . '>--</option>'; |