From: bbaetz%student.usyd.edu.au <> Date: Thu, 8 Aug 2002 07:41:33 +0000 (+0000) Subject: Bug 161304 - SQL error with allowemailchange with mysql 3.22 X-Git-Tag: bugzilla-2.16.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26954ada93d0f9ecf4a6944ec322741d7f23cdd2;p=thirdparty%2Fbugzilla.git Bug 161304 - SQL error with allowemailchange with mysql 3.22 r=justdave x2 --- diff --git a/userprefs.cgi b/userprefs.cgi index 6490088644..dff2f11721 100755 --- a/userprefs.cgi +++ b/userprefs.cgi @@ -67,7 +67,8 @@ sub DoAccount { $vars->{'realname'} = FetchSQLData(); if(Param('allowemailchange')) { - SendSQL("SELECT tokentype, issuedate + INTERVAL 3 DAY, eventdata + SendSQL("SELECT tokentype, DATE_ADD(issuedate,INTERVAL 3 DAY), + eventdata FROM tokens WHERE userid = $userid AND tokentype LIKE 'email%'