Fix for bug 150925: make email address changes work.

2xr=bbaetz
This commit is contained in:
myk%mozilla.org 2002-07-09 02:16:56 +00:00
Родитель 0465e3ac35
Коммит 773aca105c
2 изменённых файлов: 6 добавлений и 8 удалений

Просмотреть файл

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

Просмотреть файл

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