From d7958942a691a719be4d3433b5a24817c8646f9a Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Sun, 20 Feb 2005 16:02:06 +0000 Subject: Bug 280502: Replace "INTERVAL" with Bugzilla::DB function call Patch By Tomas Kopal r=mkanat, a=justdave --- userprefs.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'userprefs.cgi') 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%' -- cgit v1.2.3-24-g4f1b