diff options
author | mkanat%kerio.com <> | 2005-02-20 17:02:06 +0100 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-02-20 17:02:06 +0100 |
commit | d7958942a691a719be4d3433b5a24817c8646f9a (patch) | |
tree | 179648890480c617db96828c6b2a705f74a04d2d /userprefs.cgi | |
parent | e547dd6d7b7b9a3c2135c56dd6b7a433743fd4b1 (diff) | |
download | bugzilla-d7958942a691a719be4d3433b5a24817c8646f9a.tar.gz bugzilla-d7958942a691a719be4d3433b5a24817c8646f9a.tar.xz |
Bug 280502: Replace "INTERVAL" with Bugzilla::DB function call
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=justdave
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-x | userprefs.cgi | 3 |
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%' |