From: myk%mozilla.org <> Date: Tue, 9 Jul 2002 09:17:28 +0000 (+0000) Subject: Fix for bug 150925: Make email changes work. X-Git-Tag: bugzilla-2.16~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8031d18591a6852009aff029fcea966157b31aac;p=thirdparty%2Fbugzilla.git Fix for bug 150925: Make email changes work. 2xr=bbaetz --- diff --git a/Token.pm b/Token.pm index 358a1bb229..78eef9335f 100644 --- 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;