]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 81594 - SQL error after editing user entry when changing numerous things at once...
authorjake%acutex.net <>
Sat, 27 Oct 2001 01:35:04 +0000 (01:35 +0000)
committerjake%acutex.net <>
Sat, 27 Oct 2001 01:35:04 +0000 (01:35 +0000)
Patch by Matthew Tuck <matty@chariot.net.au>
r= dkl@redhat.com, jake@acutex.net

editusers.cgi

index b72be6e5156cbf378fc16b651cc2c62fe5d53067..3e4a20e3b22c43af6c5f776b2695241993b5196e 100755 (executable)
@@ -822,7 +822,7 @@ if ($action eq 'update') {
                  WHERE login_name=" . SqlQuote($userold));
         SendSQL("SELECT userid
                  FROM profiles
-                 WHERE login_name=" . SqlQuote($user));
+                 WHERE login_name=" . SqlQuote($userold));
         my $userid = FetchOneColumn();
         SendSQL("DELETE FROM logincookies
                  WHERE userid=" . $userid);