diff options
Diffstat (limited to 'Bugzilla/Token.pm')
-rw-r--r-- | Bugzilla/Token.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm index 9caf91ab2..548430847 100644 --- a/Bugzilla/Token.pm +++ b/Bugzilla/Token.pm @@ -260,10 +260,11 @@ sub HasEmailChangeToken { # Returns an email change token if the user has one. my ($userid) = @_; - + + my $dbh = Bugzilla->dbh; &::SendSQL("SELECT token FROM tokens WHERE userid = $userid " . "AND (tokentype = 'emailnew' OR tokentype = 'emailold') " . - "LIMIT 1"); + $dbh->sql_limit(1)); my ($token) = &::FetchSQLData(); return $token; |