diff options
author | Jim Wigginton <terrafrost@phpbb.com> | 2009-02-26 23:46:46 +0000 |
---|---|---|
committer | Jim Wigginton <terrafrost@phpbb.com> | 2009-02-26 23:46:46 +0000 |
commit | 2e50df9e1a140f322e091d74500e05b6545a54e1 (patch) | |
tree | 15ab2bfacfaebfeedb862deed1ce56d6df2b53cf /phpBB/includes/functions_user.php | |
parent | 354f9edd4e747b6927a8b2c1e454be1c366cf232 (diff) | |
download | forums-2e50df9e1a140f322e091d74500e05b6545a54e1.tar forums-2e50df9e1a140f322e091d74500e05b6545a54e1.tar.gz forums-2e50df9e1a140f322e091d74500e05b6545a54e1.tar.bz2 forums-2e50df9e1a140f322e091d74500e05b6545a54e1.tar.xz forums-2e50df9e1a140f322e091d74500e05b6545a54e1.zip |
Fixed bug #'ers 41295, 41385, 41955, 41705 and 41985
Authorised by: acydburn
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9342 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index a65ba9f6e3..82d20e90a7 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -490,7 +490,7 @@ function user_delete($mode, $user_id, $post_username = false) $db->sql_transaction('begin'); - $table_ary = array(USERS_TABLE, USER_GROUP_TABLE, TOPICS_WATCH_TABLE, FORUMS_WATCH_TABLE, ACL_USERS_TABLE, TOPICS_TRACK_TABLE, TOPICS_POSTED_TABLE, FORUMS_TRACK_TABLE, PROFILE_FIELDS_DATA_TABLE, MODERATOR_CACHE_TABLE, DRAFTS_TABLE, BOOKMARKS_TABLE); + $table_ary = array(USERS_TABLE, USER_GROUP_TABLE, TOPICS_WATCH_TABLE, FORUMS_WATCH_TABLE, ACL_USERS_TABLE, TOPICS_TRACK_TABLE, TOPICS_POSTED_TABLE, FORUMS_TRACK_TABLE, PROFILE_FIELDS_DATA_TABLE, MODERATOR_CACHE_TABLE, DRAFTS_TABLE, BOOKMARKS_TABLE, SESSIONS_KEYS_TABLE); foreach ($table_ary as $table) { @@ -506,6 +506,11 @@ function user_delete($mode, $user_id, $post_username = false) WHERE ban_userid = ' . $user_id; $db->sql_query($sql); + // Delete the user_id from the session table + $sql = 'DELETE FROM ' . SESSIONS_TABLE . ' + WHERE session_user_id = ' . $user_id; + $db->sql_query($sql); + // Remove any undelivered mails... $sql = 'SELECT msg_id, user_id FROM ' . PRIVMSGS_TO_TABLE . ' |