From 336bf13a0a34b33f4977770128bdea4da81fa486 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Tue, 9 Jul 2002 09:16:56 +0000 Subject: Fix for bug 150925: make email address changes work. 2xr=bbaetz --- Bugzilla/Token.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm index 358a1bb22..78eef9335 100644 --- a/Bugzilla/Token.pm +++ b/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; -- cgit v1.2.3-24-g4f1b