diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index ee87251a6d..a5125c4913 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -207,7 +207,7 @@ function make_forum_box($box_name, $default_forum = -1) $boxstring .= "\n"; } } @@ -664,7 +664,7 @@ function template_select($default, $dirname = "templates") { if($file == $default) { - $selected = " selected"; + $selected = " selected=\"selected\""; } $template_select .= "\n"; } @@ -695,7 +695,7 @@ function theme_select($default) { if(stripslashes($rowset[$i]['themes_name']) == $default || $rowset[$i]['themes_id'] == $default) { - $selected = " selected"; + $selected = " selected=\"selected\""; } else { @@ -730,10 +730,10 @@ function tz_select($default) "-11" => "(GMT -11:00 hours) Midway Island, Samoa", "-10" => "(GMT -10:00 hours) Hawaii", "-9" => "(GMT -9:00 hours) Alaska", - "-8" => "(GMT -8:00 hours) Pacific Time (US & Canada)", - "-7" => "(GMT -7:00 hours) Mountain Time (US & Canada)", - "-6" => "(GMT -6:00 hours) Central Time (US & Canada), Mexico City", - "-5" => "(GMT -5:00 hours) Eastern Time (US & Canada), Bogota, Lima, Quito", + "-8" => "(GMT -8:00 hours) Pacific Time (US & Canada)", + "-7" => "(GMT -7:00 hours) Mountain Time (US & Canada)", + "-6" => "(GMT -6:00 hours) Central Time (US & Canada), Mexico City", + "-5" => "(GMT -5:00 hours) Eastern Time (US & Canada), Bogota, Lima, Quito", "-4" => "(GMT -4:00 hours) Atlantic Time (Canada), Caracas, La Paz", "-3.5" => "(GMT -3:30 hours) Newfoundland", "-3" => "(GMT -3:00 hours) Brazil, Buenos Aires, Georgetown", @@ -759,7 +759,7 @@ function tz_select($default) while(list($offset, $zone) = each($tz_array)) { - $selected = ($offset == $default) ? " selected" : ""; + $selected = ($offset == $default) ? " selected=\"selected\"" : ""; $tz_select .= "\t\n"; } $tz_select .= "\n"; diff --git a/phpBB/profile.php b/phpBB/profile.php index eeba6a7221..22b05e4705 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -645,7 +645,7 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode'])) { if($mode == "editprofile") { - $sql = "UPDATE " . USERS_TABLE . " + echo $sql = "UPDATE " . USERS_TABLE . " SET " . $username_sql . $passwd_sql . "user_email = '$email', user_icq = '$icq', user_website = '$website', user_occ = '$occupation', user_from = '$location', user_interests = '$interests', user_sig = '$signature', user_viewemail = $viewemail, user_aim = '$aim', user_yim = '$yim', user_msnm = '$msn', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify_pm = $notifypm, user_timezone = $user_timezone, user_dateformat = '$user_dateformat', user_lang = '$user_lang', user_template = '$user_template', user_theme = $user_theme" . $avatar_sql . " WHERE user_id = $user_id"; diff --git a/phpBB/templates/PSO/profile_add_body.tpl b/phpBB/templates/PSO/profile_add_body.tpl index 2c5b30afd8..8dadf4fe3d 100644 --- a/phpBB/templates/PSO/profile_add_body.tpl +++ b/phpBB/templates/PSO/profile_add_body.tpl @@ -12,55 +12,55 @@
{L_AVATAR_EXPLAIN} | -{L_CURRENT_IMAGE} {AVATAR} {L_DELETE_AVATAR} |
+ {L_CURRENT_IMAGE} {AVATAR} {L_DELETE_AVATAR} |