summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index a1239ca8f..72f7232ae 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -54,7 +54,8 @@ sub DoAccount {
$vars->{'realname'} = FetchSQLData();
if(Param('allowemailchange')) {
- SendSQL("SELECT tokentype, issuedate + INTERVAL 3 DAY, eventdata
+ SendSQL("SELECT tokentype, issuedate + " . $dbh->sql_interval('3 DAY') .
+ ", eventdata
FROM tokens
WHERE userid = $userid
AND tokentype LIKE 'email%'