diff options
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-x | userprefs.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/userprefs.cgi b/userprefs.cgi index d15bcd13a..68c7d2748 100755 --- a/userprefs.cgi +++ b/userprefs.cgi @@ -57,8 +57,9 @@ sub DoAccount { Bugzilla::Token::CleanTokenTable(); my @token = $dbh->selectrow_array( - "SELECT tokentype, issuedate + " . - $dbh->sql_interval(MAX_TOKEN_AGE, 'DAY') . ", eventdata + "SELECT tokentype, " . + $dbh->sql_date_math('issuedate', '+', MAX_TOKEN_AGE, 'DAY') + . ", eventdata FROM tokens WHERE userid = ? AND tokentype LIKE 'email%' |