From c5de951582dce826d304db7ae0fc792bf91a7aed Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 18 Jan 2006 06:10:09 +0000 Subject: [PATCH] r748: Need commas to not get a SQL error --- userctrl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userctrl.php b/userctrl.php index 0b17434..1ba753b 100644 --- a/userctrl.php +++ b/userctrl.php @@ -136,8 +136,8 @@ if ($_POST['do'] == 'update') showemail = " . intval($bugsys->in['showemail']) . ", showcolours = " . intval($bugsys->in['showcolours']) . ", languageid = " . intval($bugsys->in['languageid']) . ", - timezone = " . intval($bugsys->in['timezone']) . ($email ? " - email = '" . $bugsys->in['email'] . "'" : '') . ($password ? " + timezone = " . intval($bugsys->in['timezone']) . ($email ? ", + email = '" . $bugsys->in['email'] . "'" : '') . ($password ? ", password = '" . md5(md5($bugsys->in['password']) . md5($bugsys->userinfo['salt'])) . "'" : '') . " WHERE userid = " . $bugsys->userinfo['userid'] ); -- 2.22.5