]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 150925: Make email changes work.
authormyk%mozilla.org <>
Tue, 9 Jul 2002 09:17:28 +0000 (09:17 +0000)
committermyk%mozilla.org <>
Tue, 9 Jul 2002 09:17:28 +0000 (09:17 +0000)
2xr=bbaetz

Token.pm

index 358a1bb229e712456511d9cc5330cdfc9678cf54..78eef9335fda94666444a6193d5d2cda275f1f8f 100644 (file)
--- a/Token.pm
+++ b/Token.pm
@@ -257,10 +257,9 @@ sub HasEmailChangeToken {
     
     my ($userid) = @_;
     
-    &::SendSQL("SELECT token FROM tokens 
-                 WHERE userid = $userid 
-                   AND tokentype = 'emailnew' 
-                    OR tokentype = 'emailold' LIMIT 1");
+    &::SendSQL("SELECT token FROM tokens WHERE userid = $userid " . 
+               "AND (tokentype = 'emailnew' OR tokentype = 'emailold') " . 
+               "LIMIT 1");
     my ($token) = &::FetchSQLData();
     
     return $token;