mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
A couple of items that seem to be missing from CVS
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5761 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
7c9b819b90
commit
1e06023aad
2 changed files with 3 additions and 1 deletions
|
@ -512,7 +512,7 @@ function session_reset_keys($user_id, $user_ip)
|
|||
}
|
||||
|
||||
$where_sql = 'session_user_id = ' . (int) $user_id;
|
||||
$where_sql .= ($user_id == $userdata['user_id']) ? "' AND session_id <> '" . $userdata['session_id'] . "'" : '';
|
||||
$where_sql .= ($user_id == $userdata['user_id']) ? " AND session_id <> '" . $userdata['session_id'] . "'" : '';
|
||||
$sql = 'DELETE FROM ' . SESSIONS_TABLE . "
|
||||
WHERE $where_sql";
|
||||
if ( !$db->sql_query($sql) )
|
||||
|
|
|
@ -771,6 +771,7 @@ if ( $error )
|
|||
//
|
||||
$username = stripslashes($username);
|
||||
$email = stripslashes($email);
|
||||
$cur_password = '';
|
||||
$new_password = '';
|
||||
$password_confirm = '';
|
||||
|
||||
|
@ -795,6 +796,7 @@ else if ( $mode == 'editprofile' && !isset($HTTP_POST_VARS['avatargallery']) &&
|
|||
$user_id = $userdata['user_id'];
|
||||
$username = $userdata['username'];
|
||||
$email = $userdata['user_email'];
|
||||
$cur_password = '';
|
||||
$new_password = '';
|
||||
$password_confirm = '';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue