Fixed update query for profile

git-svn-id: file:///svn/phpbb/trunk@531 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Bart van Bragt 2001-07-01 10:51:45 +00:00
parent aa4ec32181
commit a5e8db6bef

View file

@ -475,7 +475,29 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
{ {
$sql = "UPDATE ".USERS_TABLE." $sql = "UPDATE ".USERS_TABLE."
SET username = '$username'".$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_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." SET
username = '$username'".$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_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"; WHERE user_id = $user_id";
if($result = $db->sql_query($sql)) if($result = $db->sql_query($sql))
@ -1120,4 +1142,4 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
} }
?> ?>