Fix for bug 150925: make email address changes work.

2xr=bbaetz


git-svn-id: svn://10.0.0.236/trunk@124804 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
myk%mozilla.org 2002-07-09 02:16:56 +00:00
parent 8c024b9f0a
commit 537f75ea7e
2 changed files with 6 additions and 8 deletions

View File

@ -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;

View File

@ -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;