mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
two (more or less) important fixes.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4008 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -668,6 +668,19 @@ if ( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username'])
|
||||
message_die(GENERAL_ERROR, 'Could not rename users group', '', __LINE__, __FILE__, $sql);
|
||||
}
|
||||
}
|
||||
|
||||
// Delete user session, to prevent the user navigating the forum (if logged in) when disabled
|
||||
if (!$user_status)
|
||||
{
|
||||
$sql = "DELETE FROM " . SESSIONS_TABLE . "
|
||||
WHERE session_user_id = " . $user_id;
|
||||
|
||||
if ( !$db->sql_query($sql) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, 'Error removing user session', '', __LINE__, __FILE__, $sql);
|
||||
}
|
||||
}
|
||||
|
||||
$message .= $lang['Admin_user_updated'];
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user