Skip to content

Commit

Permalink
fixed error in update login_count
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@157 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Feb 4, 2001
1 parent a4adddf commit dd79a17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion login.php3
Expand Up @@ -26,8 +26,10 @@

if( password_match( $f_password, $u_password ) && ( $u_enabled=="on" ) ) {
### increment login count
$t_date_created = get_current_user_field( "date_created" );
$query = "UPDATE $g_mantis_user_table
SET login_count=login_count+1
SET login_count=login_count+1,
date_created='$t_date_created'
WHERE username='$f_username'";
$result = db_query( $query );

Expand Down

0 comments on commit dd79a17

Please sign in to comment.