From 773aca105c9674d4de8d7d20a901edeb2060244c Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" Date: Tue, 9 Jul 2002 02:16:56 +0000 Subject: [PATCH] Fix for bug 150925: make email address changes work. 2xr=bbaetz --- webtools/bugzilla/Bugzilla/Token.pm | 7 +++---- webtools/bugzilla/Token.pm | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/webtools/bugzilla/Bugzilla/Token.pm b/webtools/bugzilla/Bugzilla/Token.pm index 358a1bb229e..78eef9335fd 100644 --- a/webtools/bugzilla/Bugzilla/Token.pm +++ b/webtools/bugzilla/Bugzilla/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; diff --git a/webtools/bugzilla/Token.pm b/webtools/bugzilla/Token.pm index 358a1bb229e..78eef9335fd 100644 --- a/webtools/bugzilla/Token.pm +++ b/webtools/bugzilla/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;